Skip to content

Refactor route tests #675

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

Merged
merged 1 commit into from
Aug 25, 2020
Merged

Refactor route tests #675

merged 1 commit into from
Aug 25, 2020

Conversation

dspicher
Copy link
Contributor

@dspicher dspicher commented Aug 24, 2020

Closes #525.

  • Splits up the monolithic test into smaller unit tests

  • Factors out helpers for graph setup

  • Changes id_to_feature_flags to be a function, there was no
    reason why it had to be a macro

  • Activates a previously commented-out test that checks for
    the failure case in disable_node_test

* Splits up the monolithic test into smaller unit tests

* Factors out helpers for graph setup

* Changes `id_to_feature_flags` to be a function, there was no
reason why it had to be a macro

* Activates a previously commented-out test that checks for
the failure case in `disable_node_test`
@codecov
Copy link

codecov bot commented Aug 24, 2020

Codecov Report

Merging #675 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #675   +/-   ##
=======================================
  Coverage   91.36%   91.36%           
=======================================
  Files          35       35           
  Lines       21703    21719   +16     
=======================================
+ Hits        19828    19844   +16     
  Misses       1875     1875           
Impacted Files Coverage Δ
lightning/src/routing/router.rs 96.67% <100.00%> (+0.09%) ⬆️
lightning/src/ln/functional_tests.rs 97.00% <0.00%> (ø)

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 b3b4f43...edeb122. Read the comment docs.

Copy link
Collaborator

@TheBlueMatt TheBlueMatt left a comment

Choose a reason for hiding this comment

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

Nice! Thanks!

@TheBlueMatt TheBlueMatt merged commit 7de6cb8 into lightningdevkit:master Aug 25, 2020
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.

Refactor unit test for Router's get_route method
2 participants