MCPcopy Create free account
hub / github.com/JordanCoin/codemap / withOwnedDaemonProcess

Function withOwnedDaemonProcess

cmd/hooks_test.go:20–27  ·  view source on GitHub ↗
(t *testing.T, fn func(string) bool)

Source from the content-addressed store, hash-verified

18)
19
20func withOwnedDaemonProcess(t *testing.T, fn func(string) bool) {
21 t.Helper()
22 prev := isOwnedDaemonProcess
23 isOwnedDaemonProcess = fn
24 t.Cleanup(func() {
25 isOwnedDaemonProcess = prev
26 })
27}
28
29// TestHubInfoIsHub tests the hub detection threshold (3+ importers)
30func TestHubInfoIsHub(t *testing.T) {

Callers 1

TestShouldRestartDaemonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected