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

Method test_slice

c_glib/test/test-record-batch.rb:144–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142 end
143
144 def test_slice
145 sub_record_batch = @record_batch.slice(3, 2)
146 sub_visible_values = sub_record_batch.n_rows.times.collect do |i|
147 sub_record_batch.get_column_data(0).get_value(i)
148 end
149 assert_equal([false, true],
150 sub_visible_values)
151 end
152
153 def test_to_s
154 assert_equal(<<-PRETTY_PRINT, @record_batch.to_s)

Callers

nothing calls this directly

Calls 3

sliceMethod · 0.45
n_rowsMethod · 0.45
get_valueMethod · 0.45

Tested by

no test coverage detected