Skip to content
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

rpcserver: add missed and live tickets rpc tests. #2284

Merged
merged 1 commit into from
Jul 22, 2020

Conversation

dnldd
Copy link
Member

@dnldd dnldd commented Jul 21, 2020

This adds tests for the missed and live ticket rpcs as well as the validate address rpc.

Work towards #2069.

Copy link
Member

@rstaudt2 rstaudt2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good, just had a few inline comments

rpcserverhandlers_test.go Outdated Show resolved Hide resolved
rpcserverhandlers_test.go Outdated Show resolved Hide resolved
rpcserverhandlers_test.go Show resolved Hide resolved
@dnldd dnldd force-pushed the add_missed_and_live_rpc_tests branch from b6ac2d5 to cc86c25 Compare July 21, 2020 16:57
@davecgh davecgh added this to the 1.6.0 milestone Jul 21, 2020
Copy link
Member

@davecgh davecgh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition to the review, I confirmed full coverage for all three functions:

$ go test -run="TestHandle(Missed|Live)Tickets|TestHandleValidateAddress" -coverprofile=cov.out
$ go tool cover -func=cov.out | grep -E "handle(Missed|Live)Tickets|handleValidateAddress"
github.com/decred/dcrd/rpcserver.go:3550:       handleLiveTickets               100.0%
github.com/decred/dcrd/rpcserver.go:3566:       handleMissedTickets             100.0%
github.com/decred/dcrd/rpcserver.go:4730:       handleValidateAddress           100.0%

rpcserverhandlers_test.go Outdated Show resolved Hide resolved
rpcserverhandlers_test.go Show resolved Hide resolved
rpcserverhandlers_test.go Show resolved Hide resolved
This adds tests for the missed and live ticket rpcs
as well as the validate address rpc.
@dnldd dnldd force-pushed the add_missed_and_live_rpc_tests branch from cc86c25 to efa4931 Compare July 21, 2020 21:28
@davecgh davecgh merged commit 935467a into decred:master Jul 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants