lnwire: add fuzz test for Warning

This commit is contained in:
Matt Morehouse committed 2022-11-11 11:56:49 -06:00
1 parent 258cf6466d
commit f0f99d7e36
1 file changed
+11
+11
View File
@@ -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) {
f.Fuzz(func(t *testing.T, data []byte) {
// Prefix with MsgFundingCreated.