(t *testing.T, fn func(string) bool)
| 18 | ) |
| 19 | |
| 20 | func 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) |
| 30 | func TestHubInfoIsHub(t *testing.T) { |
no outgoing calls
no test coverage detected