Skip to content

Conversation

@aureleoules
Copy link
Contributor

This wraps the duplicated code in src/test/transaction_tests.cpp of the test tx_valid and tx_invalid in a static function for_each_test.
Easier to review with git diff --color-moved=zebra --ignore-space-change HEAD~

@fanquake fanquake added the Tests label Oct 4, 2022
@DrahtBot
Copy link
Contributor

DrahtBot commented Oct 4, 2022

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #22954 ([TESTS] Allow tx_invalid.json tests to include flag rules for if_unset: [A,B,C] then_unset: [D] by JeremyRubin)
  • #22876 ([TESTS] Update Transaction Tests to permit setting a flag as always on and disabling the exhaustive failure test by JeremyRubin)
  • #22338 ([Refactor]: Rename Script methods that only work on PreTapScript scripts by sanket1729)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@aureleoules aureleoules force-pushed the 2022-10-refactor-duplicated-test-code branch from 47b75ab to 2e9a853 Compare October 5, 2022 13:53
@glozow glozow added Refactoring and removed Tests labels Oct 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants