All test cases passing

This commit is contained in:
Bartek Kryza
2022-08-28 14:38:26 +02:00
parent 1cf3ceff7b
commit 0701a082e9
5 changed files with 34 additions and 23 deletions

View File

@@ -219,12 +219,18 @@ void diagram::get_parents(
bool found_new{false};
for (const auto &parent : parents) {
for (const auto &pp : parent.get().parents()) {
LOG_DBG("=-=-=-=-=-=-= {} HAS PARENT {} [{}]",
parent.get().full_name(false), pp.name(), pp.id());
auto p = get_class(pp.id());
if (p.has_value()) {
auto [it, found] = parents.emplace(std::ref(p.value()));
if (found)
found_new = true;
}
else {
LOG_DBG("=-=-=-=-=-=-= {} NOT FOUND IN DIAGRAM", pp.id());
}
}
}