file db unit tests and fixes
This commit is contained in:
parent
f6bd64159f
commit
bfd698fd56
@ -102,8 +102,9 @@ TYPED_TEST(file_db_test, can_get_directory_api_path) {
|
||||
EXPECT_STREQ("/", api_path.c_str());
|
||||
}
|
||||
|
||||
TYPED_TEST(file_db_test,
|
||||
directory_not_found_is_returned_for_non_existing_directory_source) {
|
||||
TYPED_TEST(
|
||||
file_db_test,
|
||||
directory_not_found_is_returned_for_non_existing_directory_source_path) {
|
||||
this->file_db->clear();
|
||||
|
||||
std::string api_path;
|
||||
@ -129,7 +130,7 @@ TYPED_TEST(file_db_test, can_get_file_api_path) {
|
||||
}
|
||||
|
||||
TYPED_TEST(file_db_test,
|
||||
file_not_found_is_returned_for_non_existing_file_source) {
|
||||
file_not_found_is_returned_for_non_existing_file_source_path) {
|
||||
this->file_db->clear();
|
||||
|
||||
std::string api_path;
|
||||
@ -156,7 +157,7 @@ TYPED_TEST(
|
||||
|
||||
std::string source_path;
|
||||
EXPECT_EQ(api_error::directory_not_found,
|
||||
this->file_db->get_directory_api_path("/", source_path));
|
||||
this->file_db->get_directory_source_path("/", source_path));
|
||||
EXPECT_TRUE(source_path.empty());
|
||||
}
|
||||
|
||||
@ -177,7 +178,7 @@ TYPED_TEST(file_db_test, can_get_file_source_path) {
|
||||
}
|
||||
|
||||
TYPED_TEST(file_db_test,
|
||||
file_not_found_is_returned_for_non_existing_file_source) {
|
||||
file_not_found_is_returned_for_non_existing_file_api_path) {
|
||||
this->file_db->clear();
|
||||
|
||||
std::string source_path;
|
||||
|
Loading…
x
Reference in New Issue
Block a user