summaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2020-02-28 18:01:21 -0800
committerAdin Scannell <ascannell@google.com>2020-03-25 16:18:05 -0700
commitd440fe0613a3b8fec75d33aff36ebada220106b0 (patch)
treedfc8e8a3a59efd1498bcbe8e6813eaab2fba58ed /tools
parent3afbe5461ac486706f1247473dbdbfae1a08e428 (diff)
Fix go_marshal Example name.
There is a canonical naming convention for Examples, which are checked by analyzers. This must be fixed since adding exceptions for generated code will be more challenging.
Diffstat (limited to 'tools')
-rw-r--r--tools/go_marshal/gomarshal/generator.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/go_marshal/gomarshal/generator.go b/tools/go_marshal/gomarshal/generator.go
index 729489de5..82983804c 100644
--- a/tools/go_marshal/gomarshal/generator.go
+++ b/tools/go_marshal/gomarshal/generator.go
@@ -413,7 +413,7 @@ func (g *Generator) writeTests(ts []*testGenerator) error {
// empty example instead.
if len(ts) == 0 {
b.reset()
- b.emit("func ExampleEmptyTestSuite() {\n")
+ b.emit("func Example() {\n")
b.inIndent(func() {
b.emit("// This example is intentionally empty to ensure this file contains at least\n")
b.emit("// one testable entity. go-marshal is forced to emit a test file if a package\n")