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

Method test_open_append_stream

c_glib/test/file-system-tests.rb:344–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342 end
343
344 def test_open_append_stream
345 assert { not file?("abc") }
346 stream = @fs.open_append_stream("abc")
347 assert_equal(0, stream.tell)
348 stream.write("some ")
349 stream.close
350 assert { file?("abc") }
351 assert_equal("some ",
352 read_file("abc"))
353
354 stream = @fs.open_append_stream("abc")
355 assert_equal(5, stream.tell)
356 stream.write("data")
357 stream.close
358 assert { file?("abc") }
359 assert_equal("some data",
360 read_file("abc"))
361 end
362
363 def test_open_input_stream
364 mkpath("AB")

Callers

nothing calls this directly

Calls 4

read_fileFunction · 0.85
open_append_streamMethod · 0.45
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected