Skip to content

Commit 3c6e1c6

Browse files
committed
go: Add funcfuzz snippet
1 parent 79e9d58 commit 3c6e1c6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

neosnippets/go.snip

+9
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,15 @@ options head
123123
}
124124
}
125125

126+
snippet funcfuzz
127+
abbr func Fuzz...(f *testing.F) { ... }
128+
options head
129+
func Fuzz${1}(${2:f *testing.F}) {
130+
f.Fuzz(func(t *testing.T, ${3:b []byte}) {
131+
${4}
132+
})
133+
}
134+
126135
snippet testtable
127136
abbr var test = {...}{...} for {t.Run(){...}}
128137
options head

0 commit comments

Comments
 (0)