(t *testing.T)
| 65 | } |
| 66 | |
| 67 | func TestReadUTF16LE_EmptyBuffer(t *testing.T) { |
| 68 | // Test edge case: zero bytes |
| 69 | data := []byte{} |
| 70 | buf := NewByteBuffer(data) |
| 71 | err := &Error{} |
| 72 | |
| 73 | result := readUTF16LE(buf, 0, err) |
| 74 | |
| 75 | require.False(t, err.HasError()) |
| 76 | require.Equal(t, "", result) |
| 77 | } |
| 78 | |
| 79 | func TestReadUTF16LE_SurrogatePair(t *testing.T) { |
| 80 | // Test UTF-16 surrogate pair for emoji: 🎉 (U+1F389) |
nothing calls this directly
no test coverage detected