(t *testing.T)
| 247 | } |
| 248 | |
| 249 | func TestRawTokenAltEncoding(t *testing.T) { |
| 250 | d := NewDecoder(strings.NewReader(testInputAltEncoding)) |
| 251 | d.CharsetReader = func(charset string, input io.Reader) (io.Reader, error) { |
| 252 | if charset != "x-testing-uppercase" { |
| 253 | t.Fatalf("unexpected charset %q", charset) |
| 254 | } |
| 255 | return &downCaser{t, input.(io.ByteReader)}, nil |
| 256 | } |
| 257 | testRawToken(t, d, testInputAltEncoding, rawTokensAltEncoding) |
| 258 | } |
| 259 | |
| 260 | func TestRawTokenAltEncodingNoConverter(t *testing.T) { |
| 261 | d := NewDecoder(strings.NewReader(testInputAltEncoding)) |
nothing calls this directly
no test coverage detected