Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle duplicate names in set_name! #318

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

daniel-thom
Copy link
Contributor

This fixes a bug where the code allowed the user to change the name of a component to a value that is already present. That caused the existing component to be silently removed from the system.

The code now detects the invalid operation and throws an exception.

This fixes a bug where the code allowed the user to change the name of a
component to a value that is already present. That caused the existing
component to be silently removed from the system.

The code now detects the invalid operation and throws an exception.
@daniel-thom daniel-thom requested a review from jd-lara January 2, 2024 18:24
Copy link

codecov bot commented Jan 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c6b7f1b) 78.14% compared to head (8ed8f2d) 78.12%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #318      +/-   ##
==========================================
- Coverage   78.14%   78.12%   -0.02%     
==========================================
  Files          49       49              
  Lines        3994     3996       +2     
==========================================
+ Hits         3121     3122       +1     
- Misses        873      874       +1     
Flag Coverage Δ
unittests 78.12% <100.00%> (-0.02%) ⬇️

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

Files Coverage Δ
src/components.jl 90.90% <100.00%> (+0.12%) ⬆️

... and 1 file with indirect coverage changes

@jd-lara jd-lara merged commit b0e2838 into NREL-Sienna:main Jan 3, 2024
7 of 9 checks passed
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.

2 participants