(t *testing.T)
| 33 | } |
| 34 | |
| 35 | func TestSet_AddElement(t *testing.T) { |
| 36 | var set = getIPv4Set(t) |
| 37 | err := set.AddElement(net.ParseIP("192.168.2.31").To4(), &nftables.ElementOptions{Timeout: 86400 * time.Second}, false) |
| 38 | if err != nil { |
| 39 | t.Fatal(err) |
| 40 | } |
| 41 | t.Log("ok") |
| 42 | } |
| 43 | |
| 44 | func TestSet_DeleteElement(t *testing.T) { |
| 45 | var set = getIPv4Set(t) |
nothing calls this directly
no test coverage detected