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

Method test_new

c_glib/test/test-duration-array.rb:21–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 include Helper::Buildable
20
21 def test_new
22 raw_data = [0, 1000]
23 data_type = Arrow::DurationDataType.new(:second)
24 assert_equal(build_duration_array(:second, [*raw_data, nil]),
25 Arrow::DurationArray.new(data_type,
26 3,
27 Arrow::Buffer.new(raw_data.pack("q*")),
28 Arrow::Buffer.new([0b011].pack("C*")),
29 -1))
30 end
31
32 def test_buffer
33 raw_data = [0, 1000]

Callers

nothing calls this directly

Calls 2

newMethod · 0.45
packMethod · 0.45

Tested by

no test coverage detected