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