You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
verifyTerminatedStateAccountsCommon(), missing test: Check that function verifyChainID() is called same number of times as the size of terminatedStateAccounts array. Also, I think tests for verifyChainID() function are missing.
initGenesisState() unit tests: The checks for that all entries in chainInfos have unique chainID and they are sorted lexicographically by chainID (lines 144 and 157 at current version) should be moved to the unit tests of function verifyChainInfos (which are currently missing). Moreover, missing test that should also be part of verifyChainInfos test, that among all elements of chainInfos, values of chainData.name are pairwise distinct.
Similar to the previous comment, I think checks about chainInfo.chainData (line 217 - 302) could be moved to dedicated tests about function verifyChainData, but this I guess is matter of choice. All related tests seem to be included.
Similarly, tests for terminatedStateAccounts (lines 304 - 546) essentially correspond to tests for function verifyTerminatedStateAccounts. Missing test to check that function verifyTerminatedStateAccountsCommon is called the proper amount of times.
Similarly, tests for terminatedOutboxAccounts (lines 548 - 660) essentially correspond to tests for function verifyTerminatedOutboxAccounts.
initGenesisState(): Missing tests: check that functions verifyChainInfos, verifyTerminatedStateAccounts, verifyTerminatedOutboxAccounts and processGenesisState are called.
Missing test for processGenesisState (line 663): check that corresponding entries are created in the registered names substore.
Unit test review for interoperability genesis state initialization and finalization steps.
NOTE: Review done on April 20, plz make sure that you check the correct version during addressing the review.
base_interoperability_module.spec.ts
verifyTerminatedStateAccountsCommon()
, missing test: Check that functionverifyChainID()
is called same number of times as the size ofterminatedStateAccounts
array. Also, I think tests forverifyChainID()
function are missing.mainchain/module.spec.ts
initGenesisState()
unit tests: The checks for that all entries inchainInfos
have uniquechainID
and they are sorted lexicographically bychainID
(lines 144 and 157 at current version) should be moved to the unit tests of functionverifyChainInfos
(which are currently missing). Moreover, missing test that should also be part ofverifyChainInfos
test, that among all elements ofchainInfos
, values ofchainData.name
are pairwise distinct.chainInfo.chainData
(line 217 - 302) could be moved to dedicated tests about functionverifyChainData
, but this I guess is matter of choice. All related tests seem to be included.terminatedStateAccounts
(lines 304 - 546) essentially correspond to tests for functionverifyTerminatedStateAccounts
. Missing test to check that functionverifyTerminatedStateAccountsCommon
is called the proper amount of times.terminatedOutboxAccounts
(lines 548 - 660) essentially correspond to tests for functionverifyTerminatedOutboxAccounts
.initGenesisState()
: Missing tests: check that functionsverifyChainInfos
,verifyTerminatedStateAccounts
,verifyTerminatedOutboxAccounts
andprocessGenesisState
are called.processGenesisState
(line 663): check that corresponding entries are created in the registered names substore.sidechain/module.spec.ts
verifyChainInfos
: Check that it calls the functionsverifyChannelData
andverifyChainValidators
.verifyTerminatedStateAccounts
: Check that the functionverifyTerminatedStateAccountsCommon
is called.The text was updated successfully, but these errors were encountered: