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

Improve embit utils test coverage 343 #388

Merged

Conversation

jdlcdl
Copy link

@jdlcdl jdlcdl commented Jun 12, 2023

resolves #343

At this point in time, this pr does NOT add any new application code, it is aimed at maximum test coverage of embit_utils, bringing coverage from ~11% to ~95%.

This pr does however hint towards 2 "good-practice" changes in embit_utils; see coverage's html report for details:

  • appending an else at the bottom of get_single_sig_address() and raising a ValueError if script_type unknown.
  • appending an else at the bottom of get_multisig_address() and raising a ValueError if policy is unknown.

tests/test_embit_utils.py Outdated Show resolved Hide resolved
tests/test_embit_utils.py Outdated Show resolved Hide resolved
tests/test_embit_utils.py Outdated Show resolved Hide resolved
@jdlcdl
Copy link
Author

jdlcdl commented Jun 12, 2023

Im just having fun,
creating convo's with myself,
marking up some insignificant errors that will be added to a nearterm future commit,
so I can resolve my own convos.

@jdlcdl jdlcdl marked this pull request as draft June 12, 2023 11:41
@jdlcdl jdlcdl marked this pull request as ready for review June 12, 2023 12:12
@newtonick
Copy link
Collaborator

ACK and tested. Even if this test isn't needed, it's mostly harmless. My main push back would be creating SO MANY tests it becomes a support burden.

@newtonick newtonick merged commit f3b808b into SeedSigner:dev Jul 20, 2023
@jdlcdl jdlcdl deleted the improve_embit_utils_test_coverage_343 branch July 31, 2023 16:51
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.

[Tests] Improve embit_utils test coverage
2 participants