github.com/rish1988/moby@v25.0.2+incompatible/libnetwork/drivers/overlay/bpf_test.go (about)

     1  package overlay
     2  
     3  import (
     4  	"testing"
     5  )
     6  
     7  func FuzzVNIMatchBPFDoesNotPanic(f *testing.F) {
     8  	for _, seed := range []uint32{0, 1, 42, 0xfffffe, 0xffffff, 0xfffffffe, 0xffffffff} {
     9  		f.Add(seed)
    10  	}
    11  	f.Fuzz(func(t *testing.T, vni uint32) {
    12  		_ = vniMatchBPF(vni)
    13  	})
    14  }