diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-03-25 17:55:14 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-03-25 17:55:14 -0700 |
commit | ce0a69ea975209d96317d70096c9cb5584ae7e54 (patch) | |
tree | 55426c6f1d0a7d46be0d9855d3dbd5eefc943a15 /tools/go_marshal/gomarshal | |
parent | 3afbe5461ac486706f1247473dbdbfae1a08e428 (diff) | |
parent | 882ed330e6e7761f482f9bfa771cc6693e0f8008 (diff) |
Merge pull request #2238 from amscanne:nogo
PiperOrigin-RevId: 303010530
Diffstat (limited to 'tools/go_marshal/gomarshal')
-rw-r--r-- | tools/go_marshal/gomarshal/generator.go | 2 |
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") |