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

Method test_peek

c_glib/test/test-buffer-input-stream.rb:66–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 end
65
66 def test_peek
67 buffer = Arrow::Buffer.new("Hello World")
68 buffer_input_stream = Arrow::BufferInputStream.new(buffer)
69 peeked_data = buffer_input_stream.peek(5)
70 assert_equal(buffer_input_stream.read(5).data.to_s,
71 peeked_data.to_s)
72 end
73
74 def test_gio_input_stream
75 # U+3042 HIRAGANA LETTER A

Callers

nothing calls this directly

Calls 4

newMethod · 0.45
to_sMethod · 0.45
dataMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected