From bfd698fd56b0a07792536313822bad44ebbb0b56 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Tue, 17 Dec 2024 14:08:33 -0600 Subject: [PATCH] file db unit tests and fixes --- repertory/repertory_test/src/file_db_test.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/repertory/repertory_test/src/file_db_test.cpp b/repertory/repertory_test/src/file_db_test.cpp index 8f57cb2d..1f06fd2b 100644 --- a/repertory/repertory_test/src/file_db_test.cpp +++ b/repertory/repertory_test/src/file_db_test.cpp @@ -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;