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

Function isBackgroundRunning

internal/stack/stacks_test.go:554–566  ·  view source on GitHub ↗

Note: This is the same logic as in ../../utils_test.go Copy+pasted to avoid dependency loops and exporting this test-helper.

(cur Stack, stacks []Stack)

Source from the content-addressed store, hash-verified

552// Note: This is the same logic as in ../../utils_test.go
553// Copy+pasted to avoid dependency loops and exporting this test-helper.
554func isBackgroundRunning(cur Stack, stacks []Stack) bool {
555 for _, s := range stacks {
556 if cur.ID() == s.ID() {
557 continue
558 }
559
560 if strings.Contains(s.State(), "run") {
561 return true
562 }
563 }
564
565 return false
566}

Callers 1

TestAllFunction · 0.70

Calls 2

IDMethod · 0.80
StateMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…