mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-28 17:19:34 +08:00
Renamed file_exists()->path_exists()
This commit is contained in:
@@ -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]")
|
||||
|
@@ -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()]]")
|
||||
{
|
||||
|
Reference in New Issue
Block a user