rust-bitcoin-unsafe-fast/bitcoin/tests/data
sanket1729 df57a195c1
Merge rust-bitcoin/rust-bitcoin#724: Serde regression tests
962abcc963 Add serde regression tests (Tobin Harding)

Pull request description:

  Attempts to add regression tests for _all_ types defined in `rust-bitcoin` that implement `Serialize`/`Deserialize`.

  - Add a `tests` directory and implement regression tests in there
  - Use files for input hex and output bincode to reduce source file clutter
  - Copy test block and `include_bytes!` usage from RCasatta's [PR](https://github.com/rust-bitcoin/rust-bitcoin/pull/750)
  - Uses Kixunil's macro suggested below
  - Adds a single regression test to `util/taproot.rs` for private types

  ## Note to reviewers
  - Uses JSON for opcodes in a separate file (`tests/regression_opcodes.rs`), for all other tests uses bincode.
  - Bypasses the order issue for maps by only serializing maps with a single element - is this correct?

  Fixes #723

ACKs for top commit:
  apoelstra:
    ACK 962abcc963
  sanket1729:
    ACK 962abcc963. This has been open for a long time. Merging this in the interest of progress.

Tree-SHA512: e34e48e1c56fab5898bc74e7fb867435ed387d828dd3daf0c7d6df8f305e1da6883e91487115ac428618eb7d95bd16aa2cd209ca219684959bc95587ef0b4083
2022-12-01 15:29:12 -08:00
..
serde Add serde regression tests 2022-10-29 10:47:16 +11:00
README.md Test PSBT integration 2022-10-27 10:40:45 -04:00
bip341_tests.json Move test_data/* tests/data 2022-10-27 10:40:44 -04:00
blockfilters.json Move test_data/* tests/data 2022-10-27 10:40:44 -04:00
combine_psbt_hex Test PSBT integration 2022-10-27 10:40:45 -04:00
create_psbt_hex Test PSBT integration 2022-10-27 10:40:45 -04:00
extract_tx_hex Test PSBT integration 2022-10-27 10:40:45 -04:00
finalize_psbt_hex Test PSBT integration 2022-10-27 10:40:45 -04:00
huge_witness.hex Add a test parsing transaction with a huge witness 2022-11-01 14:27:38 +01:00
legacy_sighash.json Move test_data/* tests/data 2022-10-27 10:40:44 -04:00
lex_combine_psbt_hex Test PSBT integration 2022-10-27 10:40:45 -04:00
lex_psbt_1_hex Test PSBT integration 2022-10-27 10:40:45 -04:00
lex_psbt_2_hex Test PSBT integration 2022-10-27 10:40:45 -04:00
mainnet_block_000000000000000000000c835b2adcaedc20fdf6ee440009c249452c726dafae.raw Move test_data/* tests/data 2022-10-27 10:40:44 -04:00
previous_tx_0_hex Test PSBT integration 2022-10-27 10:40:45 -04:00
previous_tx_1_hex Test PSBT integration 2022-10-27 10:40:45 -04:00
psbt1.hex Move test_data/* tests/data 2022-10-27 10:40:44 -04:00
psbt2.hex Move test_data/* tests/data 2022-10-27 10:40:44 -04:00
psbt_combined.hex Move test_data/* tests/data 2022-10-27 10:40:44 -04:00
sign_1_psbt_hex Test PSBT integration 2022-10-27 10:40:45 -04:00
sign_2_psbt_hex Test PSBT integration 2022-10-27 10:40:45 -04:00
testnet_block_000000000000045e0b1660b6445b5e5c5ab63c9a4f956be7e1e69be04fa4497b.raw Move test_data/* tests/data 2022-10-27 10:40:44 -04:00
update_1_psbt_hex Test PSBT integration 2022-10-27 10:40:45 -04:00
update_2_psbt_hex Test PSBT integration 2022-10-27 10:40:45 -04:00

README.md

Test vector data

This file contains data (hex strings) taken from BIP test vectors.