Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestTraceMapConcurrent (0.55 sec)

  1. src/runtime/trace2map_test.go

    			}
    			if id != uint64(i+1) {
    				t.Errorf("expected string %q to have ID %d, but got %d instead", s, i+1, id)
    			}
    		}
    		m.Reset()
    	}
    }
    
    func TestTraceMapConcurrent(t *testing.T) {
    	var m TraceMap
    
    	var wg sync.WaitGroup
    	for i := range 3 {
    		wg.Add(1)
    		go func(i int) {
    			defer wg.Done()
    
    			si := strconv.Itoa(i)
    			var d = [...]string{
    				"a" + si,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 18:52:49 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top