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

Fix lines missing from test coverage #111

Merged
merged 1 commit into from
Apr 12, 2021
Merged

Fix lines missing from test coverage #111

merged 1 commit into from
Apr 12, 2021

Conversation

dwhswenson
Copy link
Owner

@dwhswenson dwhswenson commented Apr 11, 2021

Our test suite currently fails to cover 5 lines. This PR should fix that.

  • One line was not covered because the with_colorbar option wasn't passed from ContactCount.plot to ContactCount.plot_axes in rework plotting to allow for plot_axes #79. This PR adds that functionality back in.
  • Four lines were not covered because the implementation at ContactObject.atom_contacts and ContactObject.residue_contacts are now overridden in all subclasses. It used to be that ContactMap used these, but ContactMap was removed in Remove ContactMap (allowing rename ContactFrequency => ContactMap) #88. This PR makes those explicitly abstract by raising NotImplementedError.

@dwhswenson dwhswenson changed the title Fix lines missing from tests Fix lines missing from test coverage Apr 11, 2021
@codecov
Copy link

codecov bot commented Apr 11, 2021

Codecov Report

Merging #111 (d59f90e) into master (eb0c208) will increase coverage by 0.46%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master      #111      +/-   ##
===========================================
+ Coverage   99.53%   100.00%   +0.46%     
===========================================
  Files          13        13              
  Lines        1070      1066       -4     
===========================================
+ Hits         1065      1066       +1     
+ Misses          5         0       -5     
Impacted Files Coverage Δ
contact_map/contact_map.py 100.00% <ø> (+0.98%) ⬆️
contact_map/contact_count.py 100.00% <100.00%> (+1.09%) ⬆️

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 eb0c208...d59f90e. Read the comment docs.

@dwhswenson
Copy link
Owner Author

CodeCov agrees -- we are 💯!

Ready for review.

Copy link
Collaborator

@sroet sroet left a comment

Choose a reason for hiding this comment

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

LGTM, feel free to merge

@dwhswenson dwhswenson merged commit c9d1451 into master Apr 12, 2021
@dwhswenson dwhswenson deleted the increase_testing branch April 12, 2021 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants