- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for XTestCustomContextGoroutines (0.56 sec)
-
src/context/context_test.go
} type myCtx struct { Context } type myDoneCtx struct { Context } func (d *myDoneCtx) Done() <-chan struct{} { c := make(chan struct{}) return c } func XTestCustomContextGoroutines(t testingT) { g := goroutines.Load() checkNoGoroutine := func() { t.Helper() now := goroutines.Load() if now != g { t.Fatalf("%d goroutines created", now-g) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 19 19:13:01 UTC 2023 - 7.7K bytes - Viewed (0) -
src/context/x_test.go
XTestChildFinishesFirst(t) // uses unexported context types } func TestCancelRemoves(t *testing.T) { XTestCancelRemoves(t) // uses unexported context types } func TestCustomContextGoroutines(t *testing.T) { XTestCustomContextGoroutines(t) // reads the context.goroutines counter } // The following are regular tests in package context_test. // otherContext is a Context that's not one of the types defined in context.go.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 26.3K bytes - Viewed (0)