Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/reflect/all_test.go

    	for _, tt := range tagGetTests {
    		if v := tt.Tag.Get(tt.Key); v != tt.Value {
    			t.Errorf("StructTag(%#q).Get(%#q) = %#q, want %#q", tt.Tag, tt.Key, v, tt.Value)
    		}
    	}
    }
    
    func TestBytes(t *testing.T) {
    	shouldPanic("on int Value", func() { ValueOf(0).Bytes() })
    	shouldPanic("of non-byte slice", func() { ValueOf([]string{}).Bytes() })
    
    	type S []byte
    	x := S{1, 2, 3, 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