- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestPool (0.18 sec)
-
src/sync/pool_test.go
} } // Test that Pool does not hold pointers to previously cached resources. func TestPoolGC(t *testing.T) { testPool(t, true) } // Test that Pool releases resources on GC. func TestPoolRelease(t *testing.T) { testPool(t, false) } func testPool(t *testing.T, drain bool) { var p Pool const N = 100 loop: for try := 0; try < 3; try++ { if try == 1 && testing.Short() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 8K bytes - Viewed (0)