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

Method test_buffer

c_glib/test/test-timestamp-array.rb:35–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 end
34
35 def test_buffer
36 epoch = 0
37 after_epoch = 1504953190854 # 2017-09-09T10:33:10.854Z
38 raw_data = [epoch, after_epoch]
39 array = build_timestamp_array(:milli, raw_data)
40 assert_equal(raw_data.pack("q*"),
41 array.buffer.data.to_s)
42 end
43
44 def test_value
45 after_epoch = 1504953190854 # 2017-09-09T10:33:10.854Z

Callers

nothing calls this directly

Calls 4

packMethod · 0.45
to_sMethod · 0.45
dataMethod · 0.45
bufferMethod · 0.45

Tested by

no test coverage detected