Skip to content

Conversation

john-tornblom
Copy link
Contributor

prebuild: simplify the label computation logic to improve readability

c_po = one(spr_ro).SPR_REP[4502].C_R[4500].C_IR[4009].C_PO[4016]()
self._path = get_path(c_c, c_c.Name + '::' + c_po.Name + '::' + c_i.Name + '::' + spr_ro.Name)
self.label = '::'.join([get_parent_label(c_c), c_c.Name, c_po.Name,
c_i.Name, spr_ro.Name])
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is the interface name part of the label?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It matches the hierarchy in the model tree, which allows locating the problem element easier.

@coveralls
Copy link
Collaborator

coveralls commented Oct 10, 2020

Coverage Status

Coverage increased (+0.09%) to 80.008% when pulling 356ccd6 on john-tornblom:prebuild-label-cosmetics into 9ccd8e4 on xtuml:master.

@john-tornblom john-tornblom merged commit 2f740fe into xtuml:master Oct 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants