Skip to content

Commit

Permalink
fix: make service specific test function private
Browse files Browse the repository at this point in the history
  • Loading branch information
thall committed Oct 11, 2024
1 parent dd68612 commit 6af7b60
Show file tree
Hide file tree
Showing 37 changed files with 83 additions and 83 deletions.
2 changes: 1 addition & 1 deletion internal/plugin/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func generateTestAllServices(f *protogen.GeneratedFile, files []File) {
f.P("func ", funcName, "(t *", t, ",s ", name, ") {")
for _, file := range files {
for _, service := range file.services {
name := "Test" + string(service.service.Desc.Name())
name := "test" + string(service.service.Desc.Name())
f.P(name, "(t, s)")
}
}
Expand Down
2 changes: 1 addition & 1 deletion internal/plugin/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (s *serviceGenerator) generateMainTestFunction(f *protogen.GeneratedFile) {
GoName: "T",
GoImportPath: "testing",
})
funcName := "Test" + string(s.service.Desc.Name())
funcName := "test" + string(s.service.Desc.Name())
f.P("// ", funcName, " is the main entrypoint for starting the AIP tests.")
f.P("func ", funcName, "(t *", t, ",s ", serviceTestConfigProviderName(s.service.Desc), ") {")
for _, resource := range s.resources {
Expand Down
2 changes: 1 addition & 1 deletion proto/gen/einride/example/freight/v1/aiptest.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 17 additions & 17 deletions proto/gen/googleapis/aiplatform/apiv1/aiplatformpb/aiptest.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions proto/gen/googleapis/pubsub/apiv1/pubsubpb/aiptest.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6af7b60

Please sign in to comment.