Added JSON package diagram generator test cases

This commit is contained in:
Bartek Kryza
2023-03-25 13:39:53 +01:00
parent c1bce60656
commit aa2d3099de
12 changed files with 345 additions and 130 deletions

View File

@@ -714,6 +714,12 @@ bool IsPackage(const nlohmann::json &j, const std::string &name)
return e && e->at("type") == "namespace";
}
bool IsDeprecated(const nlohmann::json &j, const std::string &name)
{
auto e = get_element(j, expand_name(j, name));
return e && e->at("is_deprecated") == true;
}
bool IsBaseClass(const nlohmann::json &j, const std::string &base,
const std::string &subclass)
{