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(core-utils): increase coverage #1742

Merged
merged 2 commits into from
Dec 16, 2018
Merged

test(core-utils): increase coverage #1742

merged 2 commits into from
Dec 16, 2018

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 #1742 into develop will increase coverage by 0.09%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1742      +/-   ##
===========================================
+ Coverage    39.48%   39.58%   +0.09%     
===========================================
  Files          353      352       -1     
  Lines         7673     7667       -6     
  Branches      1081     1096      +15     
===========================================
+ Hits          3030     3035       +5     
+ Misses        4629     4618      -11     
  Partials        14       14
Impacted Files Coverage Δ
packages/core-utils/src/bignumify.ts 100% <100%> (+100%) ⬆️
packages/core-utils/src/delegate-calculator.ts 100% <0%> (+11.76%) ⬆️

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 3b43057...2082767. Read the comment docs.

@faustbrian faustbrian merged commit c551622 into develop Dec 16, 2018
@faustbrian faustbrian deleted the test/core-utils branch December 16, 2018 03:57
@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