Fixed class diagram test cases

This commit is contained in:
Bartek Kryza
2022-07-31 00:41:51 +02:00
parent 2662c4d2ac
commit 37757b2ccc
12 changed files with 377 additions and 127 deletions

View File

@@ -177,7 +177,7 @@ void generator::generate(const class_ &c, std::ostream &ostr) const
if (!m_model.should_include(r.type()))
continue;
LOG_DBG("== Processing relationship {}",
LOG_DBG("Processing relationship {}",
plantuml_common::to_plantuml(r.type(), r.style()));
std::string destination;
@@ -189,8 +189,6 @@ void generator::generate(const class_ &c, std::ostream &ostr) const
if (util::starts_with(destination, std::string{"::"}))
destination = destination.substr(2, destination.size());
LOG_DBG("=== Destination is: {}", destination);
std::string puml_relation;
if (!r.multiplicity_source().empty())
puml_relation += "\"" + r.multiplicity_source() + "\" ";
@@ -205,7 +203,7 @@ void generator::generate(const class_ &c, std::ostream &ostr) const
}
}
catch (error::uml_alias_missing &e) {
LOG_DBG("=== Skipping {} relation from {} to {} due "
LOG_DBG("Skipping {} relation from {} to {} due "
"to: {}",
plantuml_common::to_plantuml(r.type(), r.style()),
c.full_name(), destination, e.what());
@@ -268,14 +266,6 @@ void generator::generate_relationships(
try {
destination = r.destination();
// TODO: Refactor destination to a namespace qualified entity
// name
// if (util::starts_with(destination, std::string{"::"}))
// destination = destination.substr(2,
// destination.size());
LOG_DBG("=== Destination is: {}", destination);
std::string puml_relation;
if (!r.multiplicity_source().empty())
puml_relation += "\"" + r.multiplicity_source() + "\" ";