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() 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) {