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

Method test_delete_files

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

Source from the content-addressed store, hash-verified

137 end
138
139 def test_delete_files
140 mkpath("AB")
141 create_file("abc")
142 {
143 def: 123,
144 ghi: 456,
145 jkl: 789,
146 mno: 789
147 }.each do |name, content|
148 create_file(File.join("AB", name.to_s), content.to_s)
149 end
150
151 assert_equal({
152 "AB" => :dir,
153 "AB/def" => :file,
154 "AB/ghi" => :file,
155 "AB/jkl" => :file,
156 "AB/mno" => :file,
157 "abc" => :file
158 },
159 all_entries)
160
161 @fs.delete_files(["abc", "AB/def"])
162 assert_equal({
163 "AB" => :dir,
164 "AB/ghi" => :file,
165 "AB/jkl" => :file,
166 "AB/mno" => :file
167 },
168 all_entries)
169 end
170
171 def test_move_file
172 mkpath("AB/CD")

Callers

nothing calls this directly

Calls 3

eachMethod · 0.45
joinMethod · 0.45
to_sMethod · 0.45

Tested by

no test coverage detected