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

Method test_new_bytes

c_glib/test/test-mutable-buffer.rb:24–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 end
23
24 def test_new_bytes
25 bytes_data = GLib::Bytes.new(@data)
26 buffer = Arrow::MutableBuffer.new(bytes_data)
27 if GLib.check_binding_version?(3, 2, 2)
28 assert_equal(bytes_data.pointer, buffer.mutable_data.pointer)
29 else
30 assert_equal(@data, buffer.mutable_data.to_s)
31 end
32 end
33
34 def test_mutable?
35 assert do

Callers

nothing calls this directly

Calls 3

newMethod · 0.45
mutable_dataMethod · 0.45
to_sMethod · 0.45

Tested by

no test coverage detected