mirror of
https://github.com/moby/moby.git
synced 2026-08-03 22:51:03 +00:00
15 lines
263 B
Go
15 lines
263 B
Go
package overlay
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func FuzzVNIMatchBPFDoesNotPanic(f *testing.F) {
|
|
for _, seed := range []uint32{0, 1, 42, 0xfffffe, 0xffffff, 0xfffffffe, 0xffffffff} {
|
|
f.Add(seed)
|
|
}
|
|
f.Fuzz(func(t *testing.T, vni uint32) {
|
|
_ = vniMatchBPF(vni)
|
|
})
|
|
}
|