(t *testing.T)
| 11 | ) |
| 12 | |
| 13 | func useStableOwnerHooksForLegacySubtests(t *testing.T) { |
| 14 | oldGIDHook := ownerCheckCurrentGoroutineID |
| 15 | oldThreadHook := ownerCheckCurrentThreadID |
| 16 | ownerCheckCurrentGoroutineID = func() uint64 { return 1 } |
| 17 | ownerCheckCurrentThreadID = func() uint64 { return 1 } |
| 18 | t.Cleanup(func() { |
| 19 | ownerCheckCurrentGoroutineID = oldGIDHook |
| 20 | ownerCheckCurrentThreadID = oldThreadHook |
| 21 | }) |
| 22 | } |
| 23 | |
| 24 | func TestContextBasics(t *testing.T) { |
| 25 | newTestContext := func(t *testing.T) *Context { |
no outgoing calls
no test coverage detected