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

Method test_new

c_glib/test/test-time32-array.rb:22–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 include Helper::Omittable
21
22 def test_new
23 midnight = 0
24 after_midnight = 60 * 10 # 00:10:00
25 raw_data = [midnight, after_midnight]
26 data_type = Arrow::Time32DataType.new(:second)
27 assert_equal(build_time32_array(:second, [*raw_data, nil]),
28 Arrow::Time32Array.new(data_type,
29 3,
30 Arrow::Buffer.new(raw_data.pack("l*")),
31 Arrow::Buffer.new([0b011].pack("C*")),
32 -1))
33 end
34
35 def test_buffer
36 midnight = 0

Callers

nothing calls this directly

Calls 2

newMethod · 0.45
packMethod · 0.45

Tested by

no test coverage detected