Skip to content

Commit 1ea43ef

Browse files
committed
test: skipFreezers
1 parent 03ff9d5 commit 1ea43ef

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

core/rawdb/database.libevm_test.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,29 @@ import (
2020
"bytes"
2121
"fmt"
2222
"sort"
23+
"testing"
2324

2425
"github.com/ava-labs/libevm/common"
26+
"github.com/stretchr/testify/require"
27+
2528
// To ensure that all methods are available to importing packages, this test
2629
// is defined in package `rawdb_test` instead of `rawdb`.
2730
"github.com/ava-labs/libevm/core/rawdb"
2831
"github.com/ava-labs/libevm/ethdb"
2932
)
3033

34+
func TestSkipFreezers(t *testing.T) {
35+
require := require.New(t)
36+
db := rawdb.NewMemoryDatabase()
37+
38+
var (
39+
keyPrefix []byte
40+
keyStart []byte
41+
)
42+
43+
require.NoError(rawdb.InspectDatabase(db, keyPrefix, keyStart, rawdb.WithSkipFreezers()))
44+
}
45+
3146
// ExampleDatabaseStat demonstrates the method signatures of DatabaseStat, which
3247
// exposes an otherwise unexported type that won't have its methods documented.
3348
func ExampleDatabaseStat() {

0 commit comments

Comments
 (0)