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

Function TestChain_AddRejectSetRule

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

Source from the content-addressed store, hash-verified

73}
74
75func TestChain_AddRejectSetRule(t *testing.T) {
76 var chain = getIPv4Chain(t)
77 _, err := chain.AddRejectIPv4SetRule("ipv4_black_set", nil)
78 if err != nil {
79 t.Fatal(err)
80 }
81}
82
83func TestChain_GetRuleWithUserData(t *testing.T) {
84 var chain = getIPv4Chain(t)

Callers

nothing calls this directly

Calls 2

getIPv4ChainFunction · 0.85
AddRejectIPv4SetRuleMethod · 0.80

Tested by

no test coverage detected