Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestValuePanic (0.22 sec)

  1. src/reflect/all_test.go

    	badCall(func() { call(v.Field(7).Field(1).Method(0)) })        // .namedT2.t0.W
    	badCall(func() { call(v.Field(7).Field(1).Elem().Method(0)) }) // .namedT2.t0.W
    }
    
    func TestValuePanic(t *testing.T) {
    	vo := ValueOf
    	shouldPanic("reflect.Value.Addr of unaddressable value", func() { vo(0).Addr() })
    	shouldPanic("call of reflect.Value.Bool on float64 Value", func() { vo(0.0).Bool() })
    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