LiskArchive / lisk-sdk

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

Update interop internal methods Unit Test review #9085

Closed Phanco closed 10 months ago

Phanco commented 11 months ago

What was the problem?

This PR resolves #8201

How was it solved?

Tests added/updated according to Unit Test Reviews

How was it tested?

CI Passed and coverage increased

codecov[bot] commented 11 months ago

Codecov Report

Merging #9085 (8e3b944) into release/6.1.0 (930492c) will increase coverage by 0.00%. The diff coverage is n/a.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/LiskHQ/lisk-sdk/pull/9085/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/9085?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 #9085 +/- ## ============================================== Coverage 84.35% 84.36% ============================================== Files 655 655 Lines 24113 24113 Branches 3497 3497 ============================================== + Hits 20341 20343 +2 + Misses 3772 3770 -2 ``` [see 1 file with indirect coverage changes](https://app.codecov.io/gh/LiskHQ/lisk-sdk/pull/9085/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=LiskHQ)
Phanco commented 11 months ago

The list below is copied from @AndreasKendziorra's #8201

Legend: 🟢: Updated 🔵: Resolved by other PRs/No longer needed 🔴: Ongoing

internal_method.spec.ts

appendToInboxTree and appendToOutboxTree

addToOutbox

sendInternal

terminateChainInternal

createTerminatedStateAccount

verifyCertificate

verifyCertificateSignature

verifyValidatorsUpdate

verifyPartnerChainOutboxRoot

mainchain/internal_method.spec.ts

sidechain/internal_method.spec.ts

Phanco commented 10 months ago

P.S. The TODO tag will be removed after review

Phanco commented 10 months ago

All comments have been replied and/or resolved, test also passed, feel free to take a look 🙇