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

merkledb -- add codec test and move helper #1944

Merged
merged 6 commits into from
Aug 29, 2023
Merged

Conversation

danlaine
Copy link
Collaborator

Why this should be merged

yay tests / cleanup

How this works

Adds a test and moves a helper function to the file where it's used

How this was tested

Run the tests

@danlaine danlaine added testing This primarily focuses on testing merkledb labels Aug 29, 2023
@danlaine danlaine self-assigned this Aug 29, 2023
"github.com/ava-labs/avalanchego/utils/maybe"
)

// TODO add more codec tests

func newRandomProofNode(r *rand.Rand) ProofNode {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

moved to proof_test.go

@@ -224,7 +179,7 @@ func FuzzCodecDBNodeDeterministic(f *testing.F) {
)
}

func TestCodec_DecodeDBNode(t *testing.T) {
func TestCodecDecodeDBNode(t *testing.T) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed _ for consistency with other tests

@danlaine danlaine merged commit 7bf1239 into dev Aug 29, 2023
15 of 16 checks passed
@danlaine danlaine deleted the merkledb-codec-test-2 branch August 29, 2023 21:16
@danlaine danlaine added this to the v1.10.10 milestone Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merkledb testing This primarily focuses on testing
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants