-
Notifications
You must be signed in to change notification settings - Fork 741
merkledb
-- db_test.go
cleanup
#1954
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
Conversation
require.Nil(value) | ||
} | ||
|
||
func Test_MerkleDB_InsertAndRetrieve(t *testing.T) { |
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.
Covered by test_database.go
val, err := db.HealthCheck(context.Background()) | ||
require.NoError(err) | ||
require.Nil(val) | ||
} | ||
|
||
func Test_MerkleDB_Overwrite(t *testing.T) { |
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.
Covered by test_database.go
require.Equal([]byte("value1"), value) | ||
} | ||
|
||
func Test_MerkleDB_Delete(t *testing.T) { |
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.
Covered by test_database.go
require.Nil(value) | ||
} | ||
|
||
func Test_MerkleDB_DeleteMissingKey(t *testing.T) { |
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.
Covered by test_database.go
@@ -645,92 +636,126 @@ func TestDatabaseInvalidateChildrenExcept(t *testing.T) { | |||
func Test_MerkleDB_Random_Insert_Ordering(t *testing.T) { |
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.
Gonna do some more cleanup around the randomized tests in a follow up PR
Why this should be merged
Removes redundant tests and cleans up tests
How this works
See comments
How this was tested
It is tests