[Unit Test] Complete all providers unit tests #12
Some checks are pending
BlockStorage/repertory/pipeline/head Build queued...
Some checks are pending
BlockStorage/repertory/pipeline/head Build queued...
This commit is contained in:
parent
a7580d9272
commit
d54d724953
@ -439,6 +439,7 @@ static void get_directory_item_count(const app_config & /* cfg */,
|
||||
EXPECT_EQ(api_error::success,
|
||||
provider.get_api_path_from_source(source_path, api_path));
|
||||
EXPECT_EQ(std::size_t(1U), provider.get_directory_item_count(api_path));
|
||||
return;
|
||||
}
|
||||
|
||||
create_file(provider, "/pt01.txt");
|
||||
@ -525,6 +526,7 @@ static void get_directory_items(const app_config &cfg, i_provider &provider) {
|
||||
#else
|
||||
EXPECT_EQ(std::size_t(45U), file2->size);
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
||||
create_file(provider, "/pt01.txt");
|
||||
@ -599,6 +601,7 @@ static void get_directory_items_fails_if_item_is_file(const app_config &cfg,
|
||||
EXPECT_EQ(api_error::item_exists,
|
||||
provider.get_directory_items(api_path, list));
|
||||
EXPECT_TRUE(list.empty());
|
||||
return;
|
||||
}
|
||||
|
||||
create_file(provider, "/pt01.txt");
|
||||
|
Loading…
x
Reference in New Issue
Block a user