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

Method test_uint8

c_glib/test/test-uint-array-builder.rb:21–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 include Helper::Buildable
20
21 def test_uint8
22 values = [0, 2]
23 assert_equal(build_uint_array([*values, nil]),
24 Arrow::UInt8Array.new(3,
25 Arrow::Buffer.new(values.pack("C*")),
26 Arrow::Buffer.new([0b011].pack("C*")),
27 -1))
28 end
29
30 def test_uint16
31 border_value = 2 ** 8

Callers

nothing calls this directly

Calls 2

newMethod · 0.45
packMethod · 0.45

Tested by

no test coverage detected