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

Method test_copy_file

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

Source from the content-addressed store, hash-verified

216 end
217
218 def test_copy_file
219 mkpath("AB/CD")
220 mkpath("EF")
221 create_file("AB/abc", "data")
222 assert_equal({
223 "AB" => :dir,
224 "AB/CD" => :dir,
225 "EF" => :dir,
226 "AB/abc" => :file
227 },
228 all_entries)
229
230 @fs.copy_file("AB/abc", "def")
231 assert_equal({
232 "AB" => :dir,
233 "AB/CD" => :dir,
234 "EF" => :dir,
235 "AB/abc" => :file,
236 "def" => :file
237 },
238 all_entries)
239 assert_equal("data",
240 read_file("def"))
241 end
242
243 def test_get_file_info
244 mkpath("AB/CD")

Callers

nothing calls this directly

Calls 2

read_fileFunction · 0.85
copy_fileMethod · 0.45

Tested by

no test coverage detected