Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestConcurrentRange (0.12 sec)

  1. src/sync/map_test.go

    		t.Error(err)
    	}
    }
    
    func TestMapMatchesDeepCopy(t *testing.T) {
    	if err := quick.CheckEqual(applyMap, applyDeepCopyMap, nil); err != nil {
    		t.Error(err)
    	}
    }
    
    func TestConcurrentRange(t *testing.T) {
    	const mapSize = 1 << 10
    
    	m := new(sync.Map)
    	for n := int64(1); n <= mapSize; n++ {
    		m.Store(n, int64(n))
    	}
    
    	done := make(chan struct{})
    	var 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)
Back to top