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

Function TestChain_AddDropIPRule

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

Source from the content-addressed store, hash-verified

49}
50
51func TestChain_AddDropIPRule(t *testing.T) {
52 var chain = getIPv4Chain(t)
53 _, err := chain.AddDropIPv4Rule(net.ParseIP("192.168.2.31").To4(), nil)
54 if err != nil {
55 t.Fatal(err)
56 }
57}
58
59func TestChain_AddAcceptSetRule(t *testing.T) {
60 var chain = getIPv4Chain(t)

Callers

nothing calls this directly

Calls 3

getIPv4ChainFunction · 0.85
AddDropIPv4RuleMethod · 0.80
ParseIPMethod · 0.80

Tested by

no test coverage detected