Skip to content

Commit 55c37e9

Browse files
authored
Fix godoc in suite_test template of testing plugin (#257)
* Fix godoc in suite_test template of testing plugin * make
1 parent 8c2a813 commit 55c37e9

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

testing/codegen/templates/suite_test.go.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{ printf "Run%sHarness exercises the generated harness against your service implementation." .Service.Name | comment }}
1+
{{ printf "Run%sHarness exercises the generated harness against your service implementation." .Service.StructName | comment }}
22
{{ printf "Call this helper from your test, passing your service implementation." | comment }}
33
func Run{{ .Service.StructName }}Harness(t *testing.T, svc {{ .Service.PkgName }}.Service) {
44
t.Helper()

testing/examples/calculator/calculator_suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
calculatortest "goa.design/plugins/v3/testing/examples/calculator/gen/calculator/calculatortest"
1111
)
1212

13-
// RuncalculatorHarness exercises the generated harness against your service
13+
// RunCalculatorHarness exercises the generated harness against your service
1414
// implementation.
1515
// Call this helper from your test, passing your service implementation.
1616
func RunCalculatorHarness(t *testing.T, svc calculator.Service) {

testing/examples/httpgrpc/test_http_grpc_suite_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
testHTTPGrpctest "goa.design/plugins/v3/testing/examples/httpgrpc/gen/test_http_grpc/test_http_grpctest"
1111
)
1212

13-
// Runtest-http-grpcHarness exercises the generated harness against your
14-
// service implementation.
13+
// RunTestHTTPGrpcHarness exercises the generated harness against your service
14+
// implementation.
1515
// Call this helper from your test, passing your service implementation.
1616
func RunTestHTTPGrpcHarness(t *testing.T, svc testhttpgrpc.Service) {
1717
t.Helper()

testing/examples/jsonrpc/test_jsonrpc_suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
testJsonrpctest "goa.design/plugins/v3/testing/examples/jsonrpc/gen/test_jsonrpc/test_jsonrpctest"
1010
)
1111

12-
// Runtest-jsonrpcHarness exercises the generated harness against your service
12+
// RunTestJsonrpcHarness exercises the generated harness against your service
1313
// implementation.
1414
// Call this helper from your test, passing your service implementation.
1515
func RunTestJsonrpcHarness(t *testing.T, svc testjsonrpc.Service) {

0 commit comments

Comments
 (0)