summaryrefslogtreecommitdiffhomepage
path: root/tools/go_marshal/gomarshal
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-03-25 17:55:14 -0700
committergVisor bot <gvisor-bot@google.com>2020-03-25 17:55:14 -0700
commitce0a69ea975209d96317d70096c9cb5584ae7e54 (patch)
tree55426c6f1d0a7d46be0d9855d3dbd5eefc943a15 /tools/go_marshal/gomarshal
parent3afbe5461ac486706f1247473dbdbfae1a08e428 (diff)
parent882ed330e6e7761f482f9bfa771cc6693e0f8008 (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.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")