(t *testing.T)
| 50 | } |
| 51 | |
| 52 | func TestDecodeByteStringNotCrashing(t *testing.T) { |
| 53 | var in = []byte{0x5b, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff} |
| 54 | e := NewDecoder(bytes.NewReader(in)) |
| 55 | _, err := e.DecodeByteString() |
| 56 | if err == nil { |
| 57 | t.Error("got success, want error") |
| 58 | } |
| 59 | } |
nothing calls this directly
no test coverage detected