aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/test_fuzz_tag.txt
blob: 07ed5d6d612edd50a77ab428ac8c93679760bbb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Check that the gofuzzbeta tag is enabled by default and can be disabled.
# TODO(jayconrod,katiehockman): before merging to master, restore the old
# default and delete this test.

[short] skip

go test -list=.
stdout Test
stdout Fuzz

go test -tags=

-- go.mod --
module fuzz

go 1.17
-- fuzz_test.go --
// +build gofuzzbeta

package fuzz

import "testing"

func Fuzz(f *testing.F) {
	f.Add([]byte(nil))
	f.Fuzz(func(*testing.T, []byte) {})
}

func Test(*testing.T) {}
-- empty_test.go --
package fuzz