Skip to content

Conversation

danlaine
Copy link

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

// TODO add more codec tests

func newRandomProofNode(r *rand.Rand) ProofNode {
Copy link
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

}

func TestCodec_DecodeDBNode(t *testing.T) {
func TestCodecDecodeDBNode(t *testing.T) {
Copy link
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
@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.

2 participants