- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestDecodeIntoNothing (0.36 sec)
-
src/encoding/gob/encoder_test.go
// Decode struct containing an interface into a nil. {&Struct0{&NewType0{"value0"}}, nil}, // Decode singleton slice of interfaces into a nil. {[]any{"hi", &NewType0{"value1"}, 23}, nil}, } func TestDecodeIntoNothing(t *testing.T) { Register(new(NewType0)) for i, test := range ignoreTests { b := new(bytes.Buffer) enc := NewEncoder(b) err := enc.Encode(test.in) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 29.7K bytes - Viewed (0)