(t *testing.T)
| 28 | } |
| 29 | |
| 30 | func TestTable_AddChain(t *testing.T) { |
| 31 | var table = getIPv4Table(t) |
| 32 | |
| 33 | { |
| 34 | chain, err := table.AddChain("test_default_chain", nil) |
| 35 | if err != nil { |
| 36 | t.Fatal(err) |
| 37 | } |
| 38 | t.Log("created:", chain.Name()) |
| 39 | } |
| 40 | |
| 41 | { |
| 42 | chain, err := table.AddAcceptChain("test_accept_chain") |
| 43 | if err != nil { |
| 44 | t.Fatal(err) |
| 45 | } |
| 46 | t.Log("created:", chain.Name()) |
| 47 | } |
| 48 | |
| 49 | // Do not test drop chain before adding accept rule, you will drop yourself!!!!!!! |
| 50 | /**{ |
| 51 | chain, err := table.AddDropChain("test_drop_chain") |
| 52 | if err != nil { |
| 53 | t.Fatal(err) |
| 54 | } |
| 55 | t.Log("created:", chain.Name()) |
| 56 | }**/ |
| 57 | } |
| 58 | |
| 59 | func TestTable_GetChain(t *testing.T) { |
| 60 | var table = getIPv4Table(t) |
nothing calls this directly
no test coverage detected