MCPcopy Create free account
hub / github.com/boostorg/filesystem / operations_test

Function operations_test

test/operations_unit_test.cpp:243–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241// operations_test -------------------------------------------------------//
242
243void operations_test()
244{
245 cout << "operations test..." << endl;
246
247 error_code ec;
248
249 CHECK(!create_directory("/", ec));
250
251 CHECK(!boost::filesystem::remove("no-such-file-or-directory"));
252 CHECK(!remove_all("no-such-file-or-directory"));
253
254 space_info info = space("/");
255
256 CHECK(info.available <= info.capacity);
257
258 CHECK(equivalent("/", "/"));
259 CHECK(!equivalent("/", "."));
260
261 std::time_t ft = last_write_time(".");
262 ft = -1;
263 last_write_time(".", ft, ec);
264}
265
266// directory_entry_test ------------------------------------------------------------//
267

Callers 1

cpp_mainFunction · 0.85

Calls 6

spaceFunction · 0.85
equivalentFunction · 0.85
create_directoryFunction · 0.50
removeFunction · 0.50
remove_allFunction · 0.50
last_write_timeFunction · 0.50

Tested by

no test coverage detected