Skip to content

Commit

Permalink
go: Add funcfuzz snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny committed Apr 1, 2022
1 parent 79e9d58 commit 3c6e1c6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions neosnippets/go.snip
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,15 @@ options head
}
}

snippet funcfuzz
abbr func Fuzz...(f *testing.F) { ... }
options head
func Fuzz${1}(${2:f *testing.F}) {
f.Fuzz(func(t *testing.T, ${3:b []byte}) {
${4}
})
}

snippet testtable
abbr var test = {...}{...} for {t.Run(){...}}
options head
Expand Down

0 comments on commit 3c6e1c6

Please sign in to comment.