fix return types
This commit is contained in:
@@ -209,15 +209,17 @@ protected:
|
||||
static void SetUpTestCase() {
|
||||
current_directory = std::filesystem::current_path();
|
||||
|
||||
const auto make_test_dir = [](std::string_view suite,
|
||||
std::string_view sub) {
|
||||
return utils::path::combine(test::get_test_output_dir(),
|
||||
{std::string(suite), std::string(sub)});
|
||||
const auto make_test_dir = [](const std::string &suite,
|
||||
const std::string &sub) -> std::string {
|
||||
return utils::path::combine(test::get_test_output_dir(), {
|
||||
suite,
|
||||
sub,
|
||||
});
|
||||
};
|
||||
|
||||
const auto make_cfg_dir = [](const std::string &root,
|
||||
std::string_view name) {
|
||||
auto cfg = utils::path::combine(root, {std::string(name)});
|
||||
const std::string &name) -> std::string {
|
||||
auto cfg = utils::path::combine(root, {name});
|
||||
ASSERT_TRUE(utils::file::directory(cfg).create_directory());
|
||||
return cfg;
|
||||
};
|
||||
|
Reference in New Issue
Block a user