MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / TestChain_AddAcceptSetRule

Function TestChain_AddAcceptSetRule

internal/firewalls/nftables/chain_test.go:59–65  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

57}
58
59func TestChain_AddAcceptSetRule(t *testing.T) {
60 var chain = getIPv4Chain(t)
61 _, err := chain.AddAcceptIPv4SetRule("ipv4_black_set", nil)
62 if err != nil {
63 t.Fatal(err)
64 }
65}
66
67func TestChain_AddDropSetRule(t *testing.T) {
68 var chain = getIPv4Chain(t)

Callers

nothing calls this directly

Calls 2

getIPv4ChainFunction · 0.85
AddAcceptIPv4SetRuleMethod · 0.80

Tested by

no test coverage detected