(t *testing.T, prefix string, ports []int, allow bool)
| 416 | } |
| 417 | |
| 418 | func newIPRule(t *testing.T, prefix string, ports []int, allow bool) ipaccess.Rule { |
| 419 | rule, err := ipaccess.NewRuleByCIDR(&prefix, ports, allow) |
| 420 | require.NoError(t, err) |
| 421 | return rule |
| 422 | } |
no test coverage detected