(t *testing.T)
| 57 | } |
| 58 | |
| 59 | func TestTable_GetChain(t *testing.T) { |
| 60 | var table = getIPv4Table(t) |
| 61 | for _, chainName := range []string{"not_found_chain", "test_default_chain"} { |
| 62 | chain, err := table.GetChain(chainName) |
| 63 | if err != nil { |
| 64 | if err == nftables.ErrChainNotFound { |
| 65 | t.Log(chainName, ":", "not found") |
| 66 | } else { |
| 67 | t.Fatal(err) |
| 68 | } |
| 69 | } else { |
| 70 | t.Log(chainName, ":", chain) |
| 71 | } |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | func TestTable_DeleteChain(t *testing.T) { |
| 76 | var table = getIPv4Table(t) |
nothing calls this directly
no test coverage detected