-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(pkg/scale): return error if `Result` already has an assigned value (#2143) * fix: return error if result already has an assigned value * chore: include unit test * chore: fix typo `ErrResultAlreadySet` * chore: remove unneeded `require.Error` * chore: fix undeclared name * chore: remove packaged scope var to avoid problems with result type * chore: fix result.Set error at offchain test * init * migrate current tests to integration tests * fix linting * test line endings * remove test comments * test getSecondarySlotAuthor * secondary unit tests * calculate threshold tests * remove logs * test checkPrimaryThreshold * test babe/crypto * getAuthorityIndex test * babe mocks with mockgen * test verifyPrimarySlotWinner * test verifyPreruntime Digest * WIP/Test cases for verify authorship right * finish hitting test cases for equivocation * clean up naming for verifyBlockAuthor test * create helper for making verifier * use helpers to clean up verifyAuthorship test * clean up mocks * getConfigData test * test getVerifierInfo * remove logs * test first block cases for block verification * test VerifyBlock * finish first half of babe unit tests * remove coverage files * remove accidental diff * remove accidental diff again * fix linting * remove testing aliases * make calculate threshold error global * add go generate comment for babe state TODO/make sure ok form * fix mock generation * add newline to end of build integration test * newlines * wip/newline * test line endings * wip * remove crypto integration test * change threshold err message * wip * test * remove test comments * clean up * fix build error * CR feedback * more CR feedback * change threshold error name * remove empty fields * change how mockgen used * remove test log * cr feedback * remove errors from helper funcs * final helper fix * rebase and lint * CR feedback * lint Co-authored-by: Eclésio Junior <eclesiomelo.1@gmail.com>
- Loading branch information
1 parent
cb360ab
commit e1f7f96
Showing
13 changed files
with
2,728 additions
and
382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.