MCPcopy Create free account
hub / github.com/apache/arrow / test_consume_bytes

Method test_consume_bytes

c_glib/test/test-stream-decoder.rb:69–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 3

to_sMethod · 0.45
dataMethod · 0.45
newMethod · 0.45

Tested by

no test coverage detected