1 #include <catch2/catch_test_macros.hpp>
2 #include <nlohmann/json.hpp>
5 #include <wmtk/components/utils/Paths.hpp>
10 const std::filesystem::path
data_dir = WMTK_DATA_DIR;
12 TEST_CASE(
"component_export_cache",
"[components][export_cache]")
18 const std::filesystem::path input_file =
data_dir /
"small.msh";
19 json component_json = {
20 {
"name",
"input_mesh"},
21 {
"file", input_file.string()},
23 {
"tetrahedron_attributes", json::array()}};
std::filesystem::path get_cache_path() const
Get the path of the cache folder.
void export_cache(const utils::Paths &paths, const nlohmann::json &j, io::Cache &cache)
const std::filesystem::path data_dir
TEST_CASE("component_export_cache", "[components][export_cache]")