Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ExpectOK (0.07 sec)

  1. src/reflect/all_test.go

    	// things like 'int64' converting to '*int'.
    	for t1 := range all {
    		for t2 := range all {
    			expectOK := t1 == t2 || canConvert[[2]Type{t1, t2}] || t2.Kind() == Interface && t2.NumMethod() == 0
    			if ok := t1.ConvertibleTo(t2); ok != expectOK {
    				t.Errorf("(%s).ConvertibleTo(%s) = %v, want %v", t1, t2, ok, expectOK)
    			}
    		}
    	}
    }
    
    func TestConvertPanic(t *testing.T) {
    	s := make([]byte, 4)
    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