Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for errorsFor (0.87 sec)

  1. src/reflect/all_test.go

    	}
    
    	a = nil
    	v = ValueOf(a)
    	if v.Cap() != cap(a) {
    		t.Errorf("Cap = %d want %d", v.Cap(), cap(a))
    	}
    
    	getError := func(f func()) (errorStr string) {
    		defer func() {
    			e := recover()
    			if str, ok := e.(string); ok {
    				errorStr = str
    			}
    		}()
    		f()
    		return
    	}
    	e := getError(func() {
    		var ptr *int
    		ValueOf(ptr).Cap()
    	})
    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