-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Move non-mempool specific functions to new file. #525
Conversation
As discussed on IRC, I like the concept. |
// TestCalcMinRequiredTxRelayFee tests the calcMinRequiredTxRelayFee API. | ||
func TestCalcMinRequiredTxRelayFee(t *testing.T) { | ||
tests := []struct { | ||
size int64 // Transaction size in bytes. |
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.
Please give the tests a name string
field and include it in the error output. I know there are several tests that don't do that currently, but we've been trying to move that direction since it's much harder to figure out which test failed when only given a number. Granted it's not too difficult when there are only a few tests, but I'd like to be consistent.
Reviewed 3 of 3 files at r1. policy.go, line 27 [r1] (raw file): Comments from the review on Reviewable.io |
Reviewed 1 of 2 files at r2. policy_test.go, line 72 [r2] (raw file): policy_test.go, line 79 [r2] (raw file): policy_test.go, line 158 [r2] (raw file): policy_test.go, line 198 [r2] (raw file): policy_test.go, line 204 [r2] (raw file): policy_test.go, line 210 [r2] (raw file): policy_test.go, line 217 [r2] (raw file): policy_test.go, line 224 [r2] (raw file): policy_test.go, line 232 [r2] (raw file): Also, please use a few different values. Only testing 0 and 0.00001 doesn't really exercise the function very well. Comments from the review on Reviewable.io |
No functional change. Add tests.
Reviewed 1 of 2 files at r2, 1 of 1 files at r3. Comments from the review on Reviewable.io |
OK |
All corner cases are thoroughly documented in the Generate function in file blockchain/stakeversiontests/generate.go. Fixes btcsuite#525
All corner cases are thoroughly documented in the Generate function in file blockchain/stakeversiontests/generate.go. Fixes btcsuite#525
No functional change. Add tests.