[Unit Test] Complete all providers unit tests #12
This commit is contained in:
parent
d54d724953
commit
d795e97412
@ -638,6 +638,7 @@ static void get_file(const app_config &cfg, i_provider &provider) {
|
|||||||
EXPECT_EQ(std::size_t(46U), file.file_size);
|
EXPECT_EQ(std::size_t(46U), file.file_size);
|
||||||
#endif
|
#endif
|
||||||
EXPECT_STREQ(source_path.c_str(), file.source_path.c_str());
|
EXPECT_STREQ(source_path.c_str(), file.source_path.c_str());
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -664,6 +665,7 @@ static void get_file_fails_if_item_is_directory(const app_config &cfg,
|
|||||||
|
|
||||||
api_file file{};
|
api_file file{};
|
||||||
EXPECT_EQ(api_error::directory_exists, provider.get_file(api_path, file));
|
EXPECT_EQ(api_error::directory_exists, provider.get_file(api_path, file));
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user