- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestBytes (0.22 sec)
-
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)