From 5b587f1da61007d0cc5d4b1e3f92a1cb5a19cd93 Mon Sep 17 00:00:00 2001 From: Taichi Sasaki Date: Wed, 27 May 2026 20:17:36 +0900 Subject: [PATCH 1/2] Fix godoc in suite_test template of testing plugin --- testing/codegen/templates/suite_test.go.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/codegen/templates/suite_test.go.tpl b/testing/codegen/templates/suite_test.go.tpl index 17a6a790..e4ff35e4 100644 --- a/testing/codegen/templates/suite_test.go.tpl +++ b/testing/codegen/templates/suite_test.go.tpl @@ -1,4 +1,4 @@ -{{ printf "Run%sHarness exercises the generated harness against your service implementation." .Service.Name | comment }} +{{ printf "Run%sHarness exercises the generated harness against your service implementation." .Service.StructName | comment }} {{ printf "Call this helper from your test, passing your service implementation." | comment }} func Run{{ .Service.StructName }}Harness(t *testing.T, svc {{ .Service.PkgName }}.Service) { t.Helper() From b6e0e691b8ecfe36c7cb799bd12a115bb431ffab Mon Sep 17 00:00:00 2001 From: Taichi Sasaki Date: Wed, 27 May 2026 20:27:18 +0900 Subject: [PATCH 2/2] make --- testing/examples/calculator/calculator_suite_test.go | 2 +- testing/examples/httpgrpc/test_http_grpc_suite_test.go | 4 ++-- testing/examples/jsonrpc/test_jsonrpc_suite_test.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/testing/examples/calculator/calculator_suite_test.go b/testing/examples/calculator/calculator_suite_test.go index 10714a6e..313e05ee 100644 --- a/testing/examples/calculator/calculator_suite_test.go +++ b/testing/examples/calculator/calculator_suite_test.go @@ -10,7 +10,7 @@ import ( calculatortest "goa.design/plugins/v3/testing/examples/calculator/gen/calculator/calculatortest" ) -// RuncalculatorHarness exercises the generated harness against your service +// RunCalculatorHarness exercises the generated harness against your service // implementation. // Call this helper from your test, passing your service implementation. func RunCalculatorHarness(t *testing.T, svc calculator.Service) { diff --git a/testing/examples/httpgrpc/test_http_grpc_suite_test.go b/testing/examples/httpgrpc/test_http_grpc_suite_test.go index f727f798..bef6c54c 100644 --- a/testing/examples/httpgrpc/test_http_grpc_suite_test.go +++ b/testing/examples/httpgrpc/test_http_grpc_suite_test.go @@ -10,8 +10,8 @@ import ( testHTTPGrpctest "goa.design/plugins/v3/testing/examples/httpgrpc/gen/test_http_grpc/test_http_grpctest" ) -// Runtest-http-grpcHarness exercises the generated harness against your -// service implementation. +// RunTestHTTPGrpcHarness exercises the generated harness against your service +// implementation. // Call this helper from your test, passing your service implementation. func RunTestHTTPGrpcHarness(t *testing.T, svc testhttpgrpc.Service) { t.Helper() diff --git a/testing/examples/jsonrpc/test_jsonrpc_suite_test.go b/testing/examples/jsonrpc/test_jsonrpc_suite_test.go index 28a5d933..7e77d2de 100644 --- a/testing/examples/jsonrpc/test_jsonrpc_suite_test.go +++ b/testing/examples/jsonrpc/test_jsonrpc_suite_test.go @@ -9,7 +9,7 @@ import ( testJsonrpctest "goa.design/plugins/v3/testing/examples/jsonrpc/gen/test_jsonrpc/test_jsonrpctest" ) -// Runtest-jsonrpcHarness exercises the generated harness against your service +// RunTestJsonrpcHarness exercises the generated harness against your service // implementation. // Call this helper from your test, passing your service implementation. func RunTestJsonrpcHarness(t *testing.T, svc testjsonrpc.Service) {