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

Method test_new

c_glib/test/test-timestamp-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 epoch = 0
24 after_epoch = 1504953190854 # 2017-09-09T10:33:10.854Z
25 raw_data = [epoch, after_epoch]
26 data_type = Arrow::TimestampDataType.new(:milli)
27 assert_equal(build_timestamp_array(:milli, [*raw_data, nil]),
28 Arrow::TimestampArray.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 epoch = 0

Callers

nothing calls this directly

Calls 2

newMethod · 0.45
packMethod · 0.45

Tested by

no test coverage detected