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

Method test_new_bytes

c_glib/test/test-buffer.rb:26–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 end
25
26 def test_new_bytes
27 bytes_data = GLib::Bytes.new(@data)
28 buffer = Arrow::Buffer.new(bytes_data)
29 assert_equal([
30 bytes_data.pointer,
31 @data,
32 ],
33 [
34 buffer.data.pointer,
35 buffer.data.to_s,
36 ])
37 end
38
39 def test_new_bytes_slice
40 bytes_data = GLib::Bytes.new(@data)

Callers

nothing calls this directly

Calls 3

newMethod · 0.45
dataMethod · 0.45
to_sMethod · 0.45

Tested by

no test coverage detected