Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestNilPtrValueSub (0.46 sec)

  1. src/reflect/all_test.go

    		W io.Writer
    	}
    
    	s.W = os.Stdout
    	v := Indirect(ValueOf(&s)).Field(0).Interface()
    	if v != s.W.(any) {
    		t.Error("Interface() on interface: ", v, s.W)
    	}
    }
    
    func TestNilPtrValueSub(t *testing.T) {
    	var pi *int
    	if pv := ValueOf(pi); pv.Elem().IsValid() {
    		t.Error("ValueOf((*int)(nil)).Elem().IsValid()")
    	}
    }
    
    func TestMap(t *testing.T) {
    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