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

Method AddRange

libgobuster/helpers.go:33–37  ·  view source on GitHub ↗

AddRange adds a list of elements to a set

(ss []T)

Source from the content-addressed store, hash-verified

31
32// AddRange adds a list of elements to a set
33func (set *Set[T]) AddRange(ss []T) {
34 for _, s := range ss {
35 set.Set[s] = true
36 }
37}
38
39// Contains tests if an element is in a set
40func (set *Set[T]) Contains(s T) bool {

Callers 8

runFunction · 0.80
PreRunMethod · 0.80
TestSetAddRangeFunction · 0.80
TestSetAddRangeDoubleFunction · 0.80
TestSetContainsFunction · 0.80
TestSetContainsAnyFunction · 0.80
TestSetStringifyFunction · 0.80

Calls

no outgoing calls

Tested by 6

TestSetAddRangeFunction · 0.64
TestSetAddRangeDoubleFunction · 0.64
TestSetContainsFunction · 0.64
TestSetContainsAnyFunction · 0.64
TestSetStringifyFunction · 0.64