Skip to content

Validate external_inputs/external_outputs names in connect (#114)#138

Merged
baggepinnen merged 2 commits intomasterfrom
fix-connect-unknown-external-names
May 8, 2026
Merged

Validate external_inputs/external_outputs names in connect (#114)#138
baggepinnen merged 2 commits intomasterfrom
fix-connect-unknown-external-names

Conversation

@baggepinnen
Copy link
Copy Markdown
Member

Closes #114.

connect now errors when an external_inputs or external_outputs name isn't present among the assembled system's inputs/outputs. Previously such names silently prefix-matched internal ports, producing the wrong externals.

Test plan

  • test/test_named_systems2.jl passes locally, including new @test_throws cases for both directions.

🤖 Generated with Claude Code

baggepinnen and others added 2 commits May 8, 2026 06:56
Names not present in the assembled system used to silently prefix-match
internal ports, producing the wrong external inputs. Error instead.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Single-prefix matches like `:x` -> `Symbol("x(t)")` are still accepted
(LQG tests rely on this). Only multi-result prefix expansion or no-match
at all errors now.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.93%. Comparing base (e9e38fd) to head (b1c088d).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #138      +/-   ##
==========================================
+ Coverage   90.89%   90.93%   +0.04%     
==========================================
  Files          20       20              
  Lines        3031     3045      +14     
==========================================
+ Hits         2755     2769      +14     
  Misses        276      276              
Flag Coverage Δ
unittests 90.93% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 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.

@baggepinnen baggepinnen merged commit 5b9b30d into master May 8, 2026
2 checks passed
@baggepinnen baggepinnen deleted the fix-connect-unknown-external-names branch May 8, 2026 07:41
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.

wrong external inputs

2 participants