MCPcopy Create free account
hub / github.com/GuyARoss/orbit / Contains

Method Contains

pkg/allocated_stack/allocated_stack.go:38–49  ·  view source on GitHub ↗
(v string)

Source from the content-addressed store, hash-verified

36}
37
38func (s *Stack) Contains(v string) bool {
39 e := s.l.Front()
40 for i := 0; i < s.l.Len(); i++ {
41 if e.Value == v {
42 return true
43 }
44
45 e = e.Next()
46 }
47
48 return false
49}
50
51func (s *Stack) Len() int {
52 return s.l.Len()

Callers 15

BundleMethod · 0.80
HydrationFileMethod · 0.80
HydrationFileMethod · 0.80
HydrationFileMethod · 0.80
startNodeServerFunction · 0.80
TestStackFunction · 0.80
tokenizeLineMethod · 0.80
formatPathToPageNameFunction · 0.80
formatImportLineMethod · 0.80
TestSubsetRuneFunction · 0.80
TestKeyFunction · 0.80
DoFileChangeRequestMethod · 0.80

Calls 1

LenMethod · 0.45

Tested by 12

TestStackFunction · 0.64
TestSubsetRuneFunction · 0.64
TestKeyFunction · 0.64
TestInnerHTMLFunction · 0.64
TestNew_ValidPublicDirFunction · 0.64
TestInnerHTMLFunction · 0.64
TestNew_ValidPublicDirFunction · 0.64
TestInnerHTMLFunction · 0.64
TestNew_ValidPublicDirFunction · 0.64