diff options
Diffstat (limited to 'libgo/go/cmd/go/testdata/src/testregexp/x_test.go')
-rw-r--r-- | libgo/go/cmd/go/testdata/src/testregexp/x_test.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libgo/go/cmd/go/testdata/src/testregexp/x_test.go b/libgo/go/cmd/go/testdata/src/testregexp/x_test.go new file mode 100644 index 00000000000..7573e79e167 --- /dev/null +++ b/libgo/go/cmd/go/testdata/src/testregexp/x_test.go @@ -0,0 +1,17 @@ +package x + +import "testing" + +func TestX(t *testing.T) { + t.Logf("LOG: X running") + t.Run("Y", func(t *testing.T) { + t.Logf("LOG: Y running") + }) +} + +func BenchmarkX(b *testing.B) { + b.Logf("LOG: X running N=%d", b.N) + b.Run("Y", func(b *testing.B) { + b.Logf("LOG: Y running N=%d", b.N) + }) +} |