Skip to content

Add 166 unit tests to increase coverage across 7 modules#165

Merged
mflaxman merged 1 commit into
mainfrom
add-unit-tests
Feb 28, 2026
Merged

Add 166 unit tests to increase coverage across 7 modules#165
mflaxman merged 1 commit into
mainfrom
add-unit-tests

Conversation

@jimmysong

Copy link
Copy Markdown
Collaborator

New test files for previously untested modules:

  • test_siphash.py: 64 official test vectors + incremental update/copy/digest
  • test_witness.py: parse/serialize roundtrip, clone, has_annex, edge cases
  • test_pbkdf2.py: RFC 6070 vectors, hexread, close, input validation

Expanded coverage for under-tested modules:

  • test_hash.py: 1 -> 11 tests (all tagged hash functions)
  • test_bech32.py: 1 -> 20 tests (bc32, CBOR, convertbits, error handling)
  • test_mnemonic.py: 2 -> 16 tests (BIP39 vectors, WordList, invalid inputs)
  • test_op.py: 5 -> 62 tests (encode/decode_num, stack/arithmetic/crypto ops)

New test files for previously untested modules:
- test_siphash.py: 64 official test vectors + incremental update/copy/digest
- test_witness.py: parse/serialize roundtrip, clone, has_annex, edge cases
- test_pbkdf2.py: RFC 6070 vectors, hexread, close, input validation

Expanded coverage for under-tested modules:
- test_hash.py: 1 -> 11 tests (all tagged hash functions)
- test_bech32.py: 1 -> 20 tests (bc32, CBOR, convertbits, error handling)
- test_mnemonic.py: 2 -> 16 tests (BIP39 vectors, WordList, invalid inputs)
- test_op.py: 5 -> 62 tests (encode/decode_num, stack/arithmetic/crypto ops)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mflaxman mflaxman merged commit 843a681 into main Feb 28, 2026
5 of 35 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