Renamed file_exists()->path_exists()

This commit is contained in:
gabime
2019-10-25 15:56:23 +03:00
parent c40555c0ac
commit dbe5c17a96
7 changed files with 10 additions and 23 deletions

View File

@@ -4,13 +4,13 @@
#include "includes.h"
using spdlog::details::os::create_dir;
using spdlog::details::os::file_exists;
using spdlog::details::os::path_exists;
bool try_create_dir(const char *path, const char *normalized_path)
{
auto rv = create_dir(path);
REQUIRE(rv == true);
return file_exists(normalized_path);
return path_exists(normalized_path);
}
TEST_CASE("create_dir", "[create_dir]")

View File

@@ -38,14 +38,6 @@ TEST_CASE("file_helper_size", "[file_helper::size()]]")
REQUIRE(get_filesize(target_filename) == expected_size);
}
TEST_CASE("file_helper_exists", "[file_helper::file_exists()]]")
{
prepare_logdir();
REQUIRE(!file_helper::file_exists(target_filename));
file_helper helper;
helper.open(target_filename);
REQUIRE(file_helper::file_exists(target_filename));
}
TEST_CASE("file_helper_reopen", "[file_helper::reopen()]]")
{