mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 13:04:02 +03:00
Update fuzz tests
This commit is contained in:
@@ -28,6 +28,13 @@ func FuzzGenerateHandshakeFrame(f *testing.F) {
|
||||
frame.data[4]|frame.data[5]|frame.data[6]|frame.data[7])
|
||||
|
||||
assert.Equal(t, hfConnectionType[:], frame.connectionType())
|
||||
|
||||
if arg < 0 {
|
||||
arg = -arg
|
||||
} else if arg == 0 {
|
||||
arg = defaultDC
|
||||
}
|
||||
|
||||
assert.EqualValues(t, arg, frame.dc())
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user