(t *testing.T)
| 99 | } |
| 100 | |
| 101 | func TestEncodeWithEncodingNonAscii(t *testing.T) { |
| 102 | encoder := NewEncoder('.', '_') |
| 103 | |
| 104 | _, err := encoder.EncodeWithEncoding("こんにちは", LOWER_SPECIAL) |
| 105 | require.Error(t, err, "Expected error for non-ASCII characters in non-UTF-8 encoding") |
| 106 | require.Equal(t, "non-ASCII characters in meta string are not allowed", err.Error()) |
| 107 | } |
nothing calls this directly
no test coverage detected