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

Method test_buffer

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

Source from the content-addressed store, hash-verified

33 end
34
35 def test_buffer
36 midnight = 0
37 after_midnight = 60 * 10 * 1000 * 1000 # 00:10:00.000000
38 raw_data = [midnight, after_midnight]
39 array = build_time64_array(:micro, raw_data)
40 assert_equal(raw_data.pack("q*"),
41 array.buffer.data.to_s)
42 end
43
44 def test_value
45 after_midnight = 60 * 10 * 1000 * 1000 # 00:10:00.000000

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