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

Improve test coverage #56

Merged
merged 17 commits into from
Apr 14, 2019
Merged

Improve test coverage #56

merged 17 commits into from
Apr 14, 2019

Conversation

MatthieuDartiailh
Copy link
Member

No description provided.

@codecov-io
Copy link

codecov-io commented Oct 29, 2018

Codecov Report

Merging #56 into master will increase coverage by 3.18%.
The diff coverage is 98.61%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #56      +/-   ##
=========================================
+ Coverage   93.91%   97.1%   +3.18%     
=========================================
  Files          25      25              
  Lines        1331    1346      +15     
=========================================
+ Hits         1250    1307      +57     
+ Misses         81      39      -42
Impacted Files Coverage Δ
py/variable.cpp 100% <ø> (+1.31%) ⬆️
py/util.h 100% <ø> (+1.14%) ⬆️
py/kiwisolver.cpp 100% <ø> (ø) ⬆️
kiwi/variable.h 100% <ø> (+6.66%) ⬆️
kiwi/solver.h 100% <100%> (ø) ⬆️
kiwi/solverimpl.h 92.66% <100%> (+9.78%) ⬆️
py/solver.cpp 100% <100%> (ø) ⬆️
kiwi/debug.h 97.67% <98.43%> (+4.9%) ⬆️
py/symbolics.h 100% <0%> (+2.84%) ⬆️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d917051...29970ce. Read the comment docs.

@@ -180,7 +181,15 @@ namespace debug
template<typename T>
void dump( const T& value )
{
impl::DebugHelper::dump( value );
impl::DebugHelper::dump( value, std::cout );
Copy link
Member

Choose a reason for hiding this comment

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

Can you make an overload for dump which takes an ostream reference? That may be useful for people.

/* Dump a representation of the solver internals to a string.

*/
std::string dumps()
Copy link
Member

Choose a reason for hiding this comment

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

Same thing here, make an overload for ::dump which takes an ostream ref as second arg.

@@ -605,7 +605,9 @@ class SolverImpl
Symbol leaving( m_infeasible_rows.back() );
m_infeasible_rows.pop_back();
RowMap::iterator it = m_rows.find( leaving );
if( it != m_rows.end() && it->second->constant() < 0.0 )
if( it != m_rows.end() &&
!( allDummies( *it->second ) && nearZero( it->second->constant() ) ) &&
Copy link
Member

Choose a reason for hiding this comment

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

A row with all dummies should be near zero, so that alone should be a sufficient check. No need to iterate the row to check for all dummies.

@MatthieuDartiailh
Copy link
Member Author

Thanks for the review.

@MatthieuDartiailh
Copy link
Member Author

I addressed the comments. I would like to merge and proceed with the release on the 22nd if possible.

@sccolbert sccolbert merged commit 3f83815 into master Apr 14, 2019
@MatthieuDartiailh
Copy link
Member Author

Thanks @sccolbert !

@MatthieuDartiailh MatthieuDartiailh deleted the coverage branch April 14, 2019 16:13
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.

None yet

3 participants