(t *testing.T)
| 44 | } |
| 45 | |
| 46 | func TestEncodeNonASCIIString(t *testing.T) { |
| 47 | s := "hello\x80world" |
| 48 | _, err := encodeASCIIString(s) |
| 49 | require.Equal(t, errors.New("invalid ASCII character"), err) |
| 50 | } |
nothing calls this directly
no test coverage detected