MCPcopy
hub / github.com/jaeles-project/gospider / Duplicate

Method Duplicate

stringset/filter.go:23–33  ·  view source on GitHub ↗

Duplicate checks if the name provided has been seen before by this filter.

(s string)

Source from the content-addressed store, hash-verified

21
22// Duplicate checks if the name provided has been seen before by this filter.
23func (sf *StringFilter) Duplicate(s string) bool {
24 sf.lock.Lock()
25 defer sf.lock.Unlock()
26
27 if sf.filter.Has(s) {
28 return true
29 }
30
31 sf.filter.Insert(s)
32 return false
33}

Callers 5

StartMethod · 0.95
feedLinkfinderMethod · 0.80
findSubdomainsMethod · 0.80
findAWSS3Method · 0.80
setupLinkFinderMethod · 0.80

Calls 2

HasMethod · 0.80
InsertMethod · 0.80

Tested by

no test coverage detected