refactor
This commit is contained in:
@ -110,10 +110,19 @@ auto generate_test_file_name(std::string_view file_name_no_extension)
|
||||
return generated_files.back()->get_path();
|
||||
}
|
||||
|
||||
auto get_test_config_dir() -> std::string {
|
||||
static auto test_path = ([]() -> std::string {
|
||||
auto dir = utils::get_environment_variable("PROJECT_TEST_CONFIG_DIR");
|
||||
return utils::path::combine(dir.empty() ? "." : dir, {"test_config"});
|
||||
})();
|
||||
|
||||
return test_path;
|
||||
}
|
||||
|
||||
auto get_test_input_dir() -> std::string {
|
||||
static auto test_path = ([]() -> std::string {
|
||||
auto dir = utils::get_environment_variable("PROJECT_TEST_DIR");
|
||||
return utils::path::combine(dir.empty() ? "." : dir, {"test_config"});
|
||||
auto dir = utils::get_environment_variable("PROJECT_TEST_INPUT_DIR");
|
||||
return utils::path::combine(dir.empty() ? "." : dir, {"test_input"});
|
||||
})();
|
||||
|
||||
return test_path;
|
||||
|
Reference in New Issue
Block a user