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

Add tests for atoms/second_order_cone #561

Merged
merged 3 commits into from Jan 16, 2024
Merged

Add tests for atoms/second_order_cone #561

merged 3 commits into from Jan 16, 2024

Conversation

odow
Copy link
Member

@odow odow commented Jan 15, 2024

Part of #542

if _value(x) === nothing
error("Value of the variable is yet to be calculated")
end
return output(copy(_value(x)))
Copy link
Member Author

Choose a reason for hiding this comment

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

I think a copy is needed here? It'd be weird if modifying the result of evaluate modified the .value of a variable. (Which is what used to happen in the huber example.)

Copy link

codecov bot commented Jan 15, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (a2ae061) 95.03% compared to head (6d35516) 95.22%.

Files Patch % Lines
src/variable.jl 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #561      +/-   ##
==========================================
+ Coverage   95.03%   95.22%   +0.19%     
==========================================
  Files          91       91              
  Lines        5114     5112       -2     
==========================================
+ Hits         4860     4868       +8     
+ Misses        254      244      -10     

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

@odow odow merged commit 19671db into master Jan 16, 2024
10 checks passed
@odow odow deleted the od/test-soc branch January 16, 2024 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant