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

Function TestChain_AddDropSetRule

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

Source from the content-addressed store, hash-verified

65}
66
67func TestChain_AddDropSetRule(t *testing.T) {
68 var chain = getIPv4Chain(t)
69 _, err := chain.AddDropIPv4SetRule("ipv4_black_set", nil)
70 if err != nil {
71 t.Fatal(err)
72 }
73}
74
75func TestChain_AddRejectSetRule(t *testing.T) {
76 var chain = getIPv4Chain(t)

Callers

nothing calls this directly

Calls 2

getIPv4ChainFunction · 0.85
AddDropIPv4SetRuleMethod · 0.80

Tested by

no test coverage detected