LiskArchive / lisk-sdk

🔩 Lisk software development kit
https://lisk.com
Apache License 2.0
2.72k stars 457 forks source link

Unit test `ChainEndpoint` #9168

Closed has5aan closed 7 months ago

has5aan commented 7 months ago

What was the problem?

This PR resolves #7897 .

How was it solved?

Implemented missing unit tests for ChainEndpoint.

codecov[bot] commented 7 months ago

Codecov Report

Merging #9168 (e06ed27) into release/6.1.0 (175f817) will increase coverage by 0.29%. The diff coverage is 100.00%.

:exclamation: Current head e06ed27 differs from pull request most recent head 94206b8. Consider uploading reports for the commit 94206b8 to get more accurate results

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/LiskHQ/lisk-sdk/pull/9168/graphs/tree.svg?width=650&height=150&src=pr&token=2JhT7caf5x&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=LiskHQ)](https://app.codecov.io/gh/LiskHQ/lisk-sdk/pull/9168?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=LiskHQ) ```diff @@ Coverage Diff @@ ## release/6.1.0 #9168 +/- ## ================================================= + Coverage 84.36% 84.65% +0.29% ================================================= Files 655 655 Lines 24113 24113 Branches 3497 3497 ================================================= + Hits 20343 20414 +71 + Misses 3770 3699 -71 ``` | [Files](https://app.codecov.io/gh/LiskHQ/lisk-sdk/pull/9168?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=LiskHQ) | Coverage Δ | | |---|---|---| | [framework/src/engine/endpoint/chain.ts](https://app.codecov.io/gh/LiskHQ/lisk-sdk/pull/9168?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=LiskHQ#diff-ZnJhbWV3b3JrL3NyYy9lbmdpbmUvZW5kcG9pbnQvY2hhaW4udHM=) | `98.42% <100.00%> (+55.90%)` | :arrow_up: |