MCPcopy
hub / github.com/OJ/gobuster / TestSetAddRange

Function TestSetAddRange

libgobuster/helpers_test.go:57–70  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

55}
56
57func TestSetAddRange(t *testing.T) {
58 t.Parallel()
59 x := NewSet[string]()
60 x.AddRange([]string{"string1", "string2"})
61 if len(x.Set) != 2 {
62 t.Fatalf("Unexpected string size. Should have 2 Got %v", len(x.Set))
63 }
64
65 y := NewSet[int]()
66 y.AddRange([]int{1, 2})
67 if len(y.Set) != 2 {
68 t.Fatalf("Unexpected int size. Should have 2 Got %v", len(y.Set))
69 }
70}
71
72func TestSetAddRangeDouble(t *testing.T) {
73 t.Parallel()

Callers

nothing calls this directly

Calls 2

AddRangeMethod · 0.80
FatalfMethod · 0.80

Tested by

no test coverage detected