mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 14:22:37 +01:00
lnwire: add fuzz test for Warning
This commit is contained in:
parent
258cf6466d
commit
f0f99d7e36
1 changed files with 11 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue