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

Function TestTable_GetSet

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

Source from the content-addressed store, hash-verified

108}
109
110func TestTable_GetSet(t *testing.T) {
111 var table = getIPv4Table(t)
112 for _, setName := range []string{"not_found_set", "ipv4_black_set"} {
113 set, err := table.GetSet(setName)
114 if err != nil {
115 if err == nftables.ErrSetNotFound {
116 t.Log(setName, ": not found")
117 } else {
118 t.Fatal(err)
119 }
120 } else {
121 t.Log(setName, ":", set)
122 }
123 }
124}
125
126func TestTable_DeleteSet(t *testing.T) {
127 var table = getIPv4Table(t)

Callers

nothing calls this directly

Calls 3

getIPv4TableFunction · 0.85
GetSetMethod · 0.80
LogMethod · 0.80

Tested by

no test coverage detected