two/internal/subnet/mode_test.go
2026-10-30 00:59:30 +01:00

11 lines
274 B
Go

package subnet
import "testing"
func TestBridged(t *testing.T) {
for mode, want := range map[string]bool{"bridge": true, "public_ip": true, "vxlan": false, "": false} {
if got := Bridged(mode); got != want {
t.Errorf("%q : %v, %v attendu", mode, got, want)
}
}
}