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

Function TestTable_GetChain

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

Source from the content-addressed store, hash-verified

57}
58
59func TestTable_GetChain(t *testing.T) {
60 var table = getIPv4Table(t)
61 for _, chainName := range []string{"not_found_chain", "test_default_chain"} {
62 chain, err := table.GetChain(chainName)
63 if err != nil {
64 if err == nftables.ErrChainNotFound {
65 t.Log(chainName, ":", "not found")
66 } else {
67 t.Fatal(err)
68 }
69 } else {
70 t.Log(chainName, ":", chain)
71 }
72 }
73}
74
75func TestTable_DeleteChain(t *testing.T) {
76 var table = getIPv4Table(t)

Callers

nothing calls this directly

Calls 3

getIPv4TableFunction · 0.85
GetChainMethod · 0.80
LogMethod · 0.80

Tested by

no test coverage detected