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

Method test_export_import

c_glib/test/test-chunked-array.rb:148–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146 end
147
148 def test_export_import
149 chunks = [
150 build_boolean_array([true, false, true]),
151 build_boolean_array([false, nil]),
152 ]
153 original_chunked_array = Arrow::ChunkedArray.new(chunks)
154 c_abi_array_stream = original_chunked_array.export
155 assert_equal(original_chunked_array,
156 Arrow::ChunkedArray.import(c_abi_array_stream))
157 end
158end

Callers

nothing calls this directly

Calls 2

newMethod · 0.45
importMethod · 0.45

Tested by

no test coverage detected