lnwire: add fuzz test for Warning
This commit is contained in:
1 file changed
+11
@@ -264,6 +264,17 @@ func FuzzError(f *testing.F) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func FuzzWarning(f *testing.F) {
|
||||||
|
f.Fuzz(func(t *testing.T, data []byte) {
|
||||||
|
// Prefix with MsgWarning.
|
||||||
|
data = prefixWithMsgType(data, MsgWarning)
|
||||||
|
|
||||||
|
// Pass the message into our general fuzz harness for wire
|
||||||
|
// messages!
|
||||||
|
harness(t, data)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
func FuzzFundingCreated(f *testing.F) {
|
func FuzzFundingCreated(f *testing.F) {
|
||||||
f.Fuzz(func(t *testing.T, data []byte) {
|
f.Fuzz(func(t *testing.T, data []byte) {
|
||||||
// Prefix with MsgFundingCreated.
|
// Prefix with MsgFundingCreated.
|
||||||
|
|||||||
Reference in new issue
Block a user