-
Notifications
You must be signed in to change notification settings - Fork 285
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
test(core-transactions): increase coverage to 100% #3520
Conversation
…unction, added empty expiration method on HtlcLockBuilder If method is not added builder is failing when trying to add expiration.
Codecov Report
@@ Coverage Diff @@
## develop #3520 +/- ##
==========================================
Coverage ? 56.89%
==========================================
Files ? 548
Lines ? 13661
Branches ? 1867
==========================================
Hits ? 7773
Misses ? 5859
Partials ? 29
Continue to review full report at Codecov.
|
You can check https://codecov.io/gh/ArkEcosystem/core/tree/test%2Ftest-core-transactions/packages/core-transactions/src to see what is still missing coverage to get to 100%. |
…/core into test/test-core-transactions
…ansactionHandlers
…dd additional tests
… multiSignature check execution, fix typo
Coverage is increased to almost 100%, some code cannot be tested, because it is unreachable. There are some refactoring in the core-transaction package and included merge from branch: fix(core-transactions): undefined pool variable #3535. |
There is no such thing as code that can't be tested but if it is difficult to test certain code that means you should refactor it to get coverage for it or remove it if you are certain that it is unreachable by the application. |
# Conflicts: # packages/core-transactions/src/handlers/two/delegate-resignation.ts
# Conflicts: # yarn.lock
…e pool throws error
The coverage should now be 100%. |
Summary
What changes are being made?
Rewrite tests for core-transactions. Refactor some things that causes a problem with tests.
Checklist
Some things that need a better look and maybe refactoring were marked with todo comment (handler.test.ts).