1 #include <catch2/catch_test_macros.hpp>
2 #include <nlohmann/json.hpp>
6 #include <wmtk/components/utils/Paths.hpp>
11 const std::filesystem::path
data_dir = WMTK_DATA_DIR;
13 TEST_CASE(
"component_import_cache",
"[components][import_cache]")
19 const std::filesystem::path input_file =
data_dir /
"small.msh";
20 json component_json = {
21 {
"name",
"input_mesh"},
22 {
"file", input_file.string()},
24 {
"tetrahedron_attributes", json::array()}};
49 CHECK(cache.
equals(cache2));
std::filesystem::path get_cache_path() const
Get the path of the cache folder.
bool equals(const Cache &o)
Compare two caches for equality.
void import_cache(const utils::Paths &paths, const nlohmann::json &j, io::Cache &cache)
void export_cache(const utils::Paths &paths, const nlohmann::json &j, io::Cache &cache)
TEST_CASE("component_import_cache", "[components][import_cache]")
const std::filesystem::path data_dir