-
Notifications
You must be signed in to change notification settings - Fork 129
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
testing (dot/core): rewrite message.go unit tests #2197
Merged
jimjbrettj
merged 23 commits into
jimmy/coreIntegrationTests
from
jimmy/coreMessageUnitTests
Jan 21, 2022
Merged
Changes from 22 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
314b0a1
chore(pkg/scale): return error if `Result` already has an assigned va…
EclesioMeloJunior 77ad525
test txt count and generate mocks with mockgen
jimjbrettj 8dcdc6a
WIP/hanldeTxnMsgTest
jimjbrettj 460e30c
WIP/core message tests
jimjbrettj 1139b84
wip/finish core message tests
jimjbrettj 01fd2cc
wip/message test
jimjbrettj 45716d7
fix reporting issue
jimjbrettj af7dd32
test core messages
jimjbrettj ba56714
remove comments and lint
jimjbrettj ec7b7ff
remove unused file
jimjbrettj 30e63f7
wip/cr feedback
jimjbrettj c83ba7f
use dummy error for tests
jimjbrettj a8a6e36
wip/finish cr feedback
jimjbrettj c0fc4f1
wip/move message validation to a separate function
jimjbrettj fe1285f
move txn validity check to new func
jimjbrettj 7e3739c
lint
jimjbrettj d15dd41
fix variable naming to make less confusing
jimjbrettj 9deebbc
remove pointer from validateTxn helper params
jimjbrettj f6804dd
refactor tests to define mocks in subtest
jimjbrettj 1eab676
CR feedback
jimjbrettj b0eb697
finish feedback for core tests
jimjbrettj 02939d5
define runtime mocks in subtest
jimjbrettj d53eb01
remane validTxn var
jimjbrettj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit perhaps rename to
allTxsAreValid
? 🤔