| 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 |
| 72 | end |
nothing calls this directly
no test coverage detected