Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestChan (0.09 sec)

  1. src/reflect/all_test.go

    		t.Errorf("mbig.MapIndex(\"hello\") for nil map = %v, want Invalid Value", x)
    	}
    
    	// Test that deletes from a nil map succeed.
    	mv.SetMapIndex(ValueOf("hi"), Value{})
    }
    
    func TestChan(t *testing.T) {
    	for loop := 0; loop < 2; loop++ {
    		var c chan int
    		var cv Value
    
    		// check both ways to allocate channels
    		switch loop {
    		case 1:
    			c = make(chan int, 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top