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

Method test_peek

c_glib/test/test-gio-input-stream.rb:64–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 end
63
64 def test_peek
65 input_stream = Gio::MemoryInputStream.new("Hello World")
66 buffered_input_stream = Gio::BufferedInputStream.new(input_stream)
67 input = Arrow::GIOInputStream.new(buffered_input_stream)
68 assert_equal("He", input.peek(2).to_s)
69 assert_equal("Hel", input.read_bytes(3).to_s)
70 assert_equal("lo ", input.peek(3).to_s)
71 end
72end

Callers

nothing calls this directly

Calls 3

newMethod · 0.45
to_sMethod · 0.45
read_bytesMethod · 0.45

Tested by

no test coverage detected