github.com/kaisenlinux/docker.io@v0.0.0-20230510090727-ea55db55fac7/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  }