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

Method test_slice

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

Source from the content-addressed store, hash-verified

103 end
104
105 def test_slice
106 chunks1 = [
107 build_boolean_array([true, false, true]),
108 build_boolean_array([false, true]),
109 ]
110 chunks2 = [
111 build_boolean_array([false, true]),
112 build_boolean_array([false]),
113 ]
114 chunked_array = Arrow::ChunkedArray.new(chunks1)
115 sub_chunked_array = chunked_array.slice(1, 3)
116 assert_equal(chunks2, sub_chunked_array.chunks)
117 end
118
119 def test_to_s
120 chunks = [

Callers

nothing calls this directly

Calls 3

newMethod · 0.45
sliceMethod · 0.45
chunksMethod · 0.45

Tested by

no test coverage detected