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

Method test_new

c_glib/test/test-time64-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 * 1000 * 1000 # 00:10:00.000000
25 raw_data = [midnight, after_midnight]
26 data_type = Arrow::Time64DataType.new(:micro)
27 assert_equal(build_time64_array(:micro, [*raw_data, nil]),
28 Arrow::Time64Array.new(data_type,
29 3,
30 Arrow::Buffer.new(raw_data.pack("q*")),
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