(t *testing.T)
| 95 | } |
| 96 | |
| 97 | func TestChain_GetRules(t *testing.T) { |
| 98 | var chain = getIPv4Chain(t) |
| 99 | rules, err := chain.GetRules() |
| 100 | if err != nil { |
| 101 | t.Fatal(err) |
| 102 | } |
| 103 | for _, rule := range rules { |
| 104 | t.Log("handle:", rule.Handle(), "set name:", rule.LookupSetName(), |
| 105 | "verdict:", rule.VerDict(), "user data:", string(rule.UserData())) |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | func TestChain_DeleteRule(t *testing.T) { |
| 110 | var chain = getIPv4Chain(t) |
nothing calls this directly
no test coverage detected