MCPcopy Create free account
hub / github.com/PowerGridModel/power-grid-model / read_json

Function read_json

tests/cpp_validation_tests/test_validation.cpp:49–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47using nlohmann::json;
48
49auto read_json(std::filesystem::path const& path) {
50 json j;
51 std::ifstream f{path};
52 f >> j;
53 return j;
54}
55
56template <typename T> std::string get_as_string(T const& attribute_value) {
57 std::stringstream sstr;

Callers 1

add_casesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected