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

test(visualizeSubnetwork): Add unit tests for visualizeSubnetwork #9

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

tonywu1999
Copy link
Contributor

Motivation and Context

We should add unit tests for the visualizeSubnetwork function, which takes nodes and edges and visualizes them on Cytoscape. Due to the nature of integration with Cytoscape, we will mock those functions.

Changes

  • Add unit tests verifying basic functionality of visualizeSubnetwork and its parameters
  • Added test data
  • Added dependency on mockery for testing

Testing

  • All tests pass

Checklist Before Requesting a Review

  • I have read the MSstats contributing guidelines
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.59%. Comparing base (4f4a970) to head (7c5b829).

Additional details and impacted files
@@             Coverage Diff             @@
##            devel       #9       +/-   ##
===========================================
+ Coverage   59.79%   86.59%   +26.80%     
===========================================
  Files           3        3               
  Lines          97       97               
===========================================
+ Hits           58       84       +26     
+ Misses         39       13       -26     

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

@tonywu1999 tonywu1999 merged commit 929df93 into devel Jul 25, 2024
3 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