- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestMultipleEncodingsOfBadType (0.27 sec)
-
src/encoding/gob/encoder_test.go
} type Bug4Secret struct { a int // error: no exported fields. } // Test that a failed compilation doesn't leave around an executable encoder. // Issue 3723. func TestMultipleEncodingsOfBadType(t *testing.T) { x := Bug4Public{ Name: "name", Secret: Bug4Secret{1}, } buf := new(bytes.Buffer) enc := NewEncoder(buf) err := enc.Encode(x) 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)