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

test(crypto): increase handler coverage #1746

Merged
merged 4 commits into from
Dec 16, 2018
Merged

Conversation

faustbrian
Copy link
Contributor

Proposed changes

Increases coverage by adding tests for lines reported by codecov.

Types of changes

  • Test (adding missing tests or fixing existing tests)

Checklist

  • I have read the CONTRIBUTING documentation
  • Lint and unit tests pass locally with my changes

@ghost ghost assigned faustbrian Dec 16, 2018
@ghost ghost added the review label Dec 16, 2018
@codecov-io
Copy link

codecov-io commented Dec 16, 2018

Codecov Report

Merging #1746 into develop will increase coverage by 0.04%.
The diff coverage is 71.42%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1746      +/-   ##
===========================================
+ Coverage    39.78%   39.83%   +0.04%     
===========================================
  Files          352      352              
  Lines         7668     7665       -3     
  Branches      1094     1117      +23     
===========================================
+ Hits          3051     3053       +2     
+ Misses        4601     4596       -5     
  Partials        16       16
Impacted Files Coverage Δ
...ckages/crypto/src/handlers/transactions/handler.ts 100% <100%> (+13.95%) ⬆️
...rypto/src/handlers/transactions/multi-signature.ts 70% <66.66%> (+5%) ⬆️
.../crypto/src/handlers/transactions/multi-payment.ts 80% <66.66%> (-10%) ⬇️
packages/crypto/src/models/wallet.ts 44.85% <0%> (-2.81%) ⬇️
packages/core-test-utils/src/generators/wallets.ts 85.71% <0%> (ø) ⬆️
packages/crypto/src/crypto/crypto.ts 91.01% <0%> (+0.56%) ⬆️
...es/crypto/src/validation/validators/transaction.ts 100% <0%> (+9.09%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 375770c...b4a513b. Read the comment docs.

@faustbrian faustbrian merged commit 61e8bc1 into develop Dec 16, 2018
@faustbrian faustbrian deleted the test/crypto-handler branch December 16, 2018 06:16
@ghost ghost removed the review label Dec 16, 2018
spkjp added a commit that referenced this pull request Dec 17, 2018
…ocess queue on fork (#1732)

* refactor: remove misleading log output

* refactor: move block exception check

* fix: reset queue at the beginning of fork recovery

* refactor: drop process queue after disregarding unchained block

* fix: update blocks from current round after recovery

* fix: check if received block contains forged transactions

* refactor: only fork when downloaded block cannot be chained with last accepted block

* refactor: only check forged transactions if it is a chained block

* test: fix

* fix(core-p2p): call updateNetworkStatusIfNotEnoughPeers in the correct context (#1737)

* refactor(core-p2p): replace the network update timeout with a period check (#1738)

* refactor(core-p2p): replace the network update timeout with a period check

* refactor(core-p2p): only sett the last network timeout if it is not set or expired

* chore(core-p2p): remove pTimeout dependency

* refactor: change name and make sure the next network update is scheduled

* chore(package): update better-sqlite3 to version 5.2.0 (#1739)

* test(core-utils): increase coverage (#1742)

* test(core-debugger-cli): increase coverage (#1743)

* chore: update @babel/core and @babel/preset-env (#1740)

* chore(package): update @babel/core to version 7.2.2

* chore(package): update @babel/preset-env to version 7.2.0

* chore(package): update lockfile yarn.lock

* chore: update yarn.lock

* test(crypto): increase identity coverage (#1744)

* test(crypto): increase handler coverage (#1745)

* test(crypto): increase handler coverage (#1746)

* test(crypto): increase multi signature/payment coverage (#1747)

* docs: changelog and readme formatting (#1824)

* refactor: rename resetQueue

* fix: only care about missing blocks when process queue is empty

* refactor: reword log message

* refactor: move fork into function

* fix: accept internal blocks even if in fork state

* fix: dont show peer tracker after init

* refactor: remove useless forked flag
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