- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestConcurrentClear (0.11 sec)
-
src/sync/map_test.go
}) }) if allocs > 0 { t.Errorf("AllocsPerRun of m.Range = %v; want 0", allocs) } } // TestConcurrentClear tests concurrent behavior of sync.Map properties to ensure no data races. // Checks for proper synchronization between Clear, Store, Load operations. func TestConcurrentClear(t *testing.T) { var m sync.Map wg := sync.WaitGroup{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 01 15:34:22 UTC 2024 - 8.1K bytes - Viewed (0)