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

Refactor: Move transaction testing utilities from crates/chain/tests/common to testenv crate #1612

Merged
merged 1 commit into from
Oct 14, 2024

Commits on Oct 3, 2024

  1. refactor(test): move tx test utils to testenv

    - add `utils` mod to testenv crate to keep all
    utilities moved from `crates/chain/test/common`
    - replace all test tx macros in `chain` crate with
    import from `testenv` crate
        - tests/test_indexed_tx_graph
        - tests/test_keychain_txout_index
        - tests/test_local_chain
        - tests/test_tx_graph
        - tests/test_tx_graph_conflicts
    - deleted all moved macros and functions in
    `crates/chain/test/common/mod`
    - replace `bitcoin` external crate with
    `bd_chain::bitcoin`
    - move `DESCRIPTORS` sample array to `utils` for
    other crates to use
    - rename h! macro to hash! for clarity
    - rename localchain! macro parameter from
    'block_hash' to 'hash'
    
    [Ticket: bitcoindevkit#1602]
    tvpeter committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    88a8403 View commit details
    Browse the repository at this point in the history