MCPcopy
hub / github.com/uber-go/goleak / HasFunction

Method HasFunction

internal/stack/stacks.go:72–75  ·  view source on GitHub ↗

HasFunction reports whether the stack has the given function anywhere in it.

(name string)

Source from the content-addressed store, hash-verified

70// HasFunction reports whether the stack has the given function
71// anywhere in it.
72func (s Stack) HasFunction(name string) bool {
73 _, ok := s.allFunctions[name]
74 return ok
75}
76
77func (s Stack) String() string {
78 return fmt.Sprintf(

Callers 8

TestCurrentCreatedByFunction · 0.95
IgnoreAnyFunctionFunction · 0.80
isSyscallStackFunction · 0.80
isStdLibStackFunction · 0.80
isTraceStackFunction · 0.80
TestCurrentFunction · 0.80
TestParseStackFunction · 0.80
TestParseStackFixturesFunction · 0.80

Calls

no outgoing calls

Tested by 4

TestCurrentCreatedByFunction · 0.76
TestCurrentFunction · 0.64
TestParseStackFunction · 0.64
TestParseStackFixturesFunction · 0.64