Skip to content

Bracket component names in OneToOneIfSameParentNamespace arrows - #508

Merged
alexanderlinne merged 1 commit into
mainfrom
fix/one-to-one-if-same-namespace-arrows
Oct 9, 2026
Merged

alexanderlinne merged 1 commit into
mainfrom
fix/one-to-one-if-same-namespace-arrows

Conversation

@alexanderlinne

Copy link
Copy Markdown
Collaborator

OneToOneIfSameParentNamespace wrote component names bare where every other arrow brackets them, so "[a] --|> [b]" came out as "a --|> b". That happens to parse while a name is a plain identifier and stops as soon as one is not: ".." collides with PlantUML's dashed-arrow operator, and "*" is not an identifier character at all. Its two mixed component/package arrows had the same problem and no test at all; both are now covered.

This went unnoticed because the names drawn by this arrow have so far been plain identifiers.

1-unbracketed-arrow

OneToOneIfSameParentNamespace wrote component names bare where every
other arrow brackets them, so "[a] --|> [b]" came out as "a --|> b".
That happens to parse while a name is a plain identifier and stops as
soon as one is not: ".." collides with PlantUML's dashed-arrow operator,
and "*" is not an identifier character at all. Its two mixed
component/package arrows had the same problem and no test at all; both
are now covered.

This went unnoticed because the names drawn by this arrow have so far
been plain identifiers.

Signed-off-by: Alexander Linne <alexander.linne@tngtech.com>
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.25%. Comparing base (b90409d) to head (80f907c).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #508   +/-   ##
=======================================
  Coverage   86.25%   86.25%           
=======================================
  Files         260      260           
  Lines       12496    12496           
  Branches     1218     1218           
=======================================
  Hits        10778    10778           
  Misses       1379     1379           
  Partials      339      339           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@alexanderlinne
alexanderlinne merged commit fcd1134 into main Oct 9, 2026
10 checks passed
@alexanderlinne
alexanderlinne deleted the fix/one-to-one-if-same-namespace-arrows branch October 9, 2026 09:29
This was referenced Oct 26, 2026
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