| 67 | end |
| 68 | |
| 69 | def test_consume_bytes |
| 70 | @buffer.data.to_s.each_byte do |byte| |
| 71 | @decoder.consume_bytes(GLib::Bytes.new(byte.chr)) |
| 72 | end |
| 73 | assert_equal([ |
| 74 | [:schema_decoded, @schema, @schema], |
| 75 | [:record_batch_decoded, @record_batch, nil], |
| 76 | [:eos], |
| 77 | ], |
| 78 | @listener.events) |
| 79 | end |
| 80 | |
| 81 | def test_consume_buffer |
| 82 | # We need to keep data that aren't processed yet. |