(t *testing.T)
| 20 | } |
| 21 | |
| 22 | func TestDecodeASCIIStringNullByte(t *testing.T) { |
| 23 | s := "hello\x00world" |
| 24 | require.Equal(t, "hello", decodeNullPaddedASCIIString([]byte(s))) |
| 25 | } |
| 26 | |
| 27 | func TestDecodeNonASCIIString(t *testing.T) { |
| 28 | s := "hello\x80world" |
nothing calls this directly
no test coverage detected