Skip to content

Commit

Permalink
test: add additional test case
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-axner committed Oct 8, 2024
1 parent e08b568 commit 1c9d758
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions go/compress_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func TestDecompressExist(t *testing.T) {
expError error
}{
{
"success single lookup",
"success: single lookup",
func() {
compressedExistProof.Path = []int32{0}
},
Expand All @@ -56,7 +56,7 @@ func TestDecompressExist(t *testing.T) {
nil,
},
{
"success multiple lookups",
"success: multiple lookups",
func() {
compressedExistProof.Path = []int32{0, 1, 0, 2}
},
Expand All @@ -68,6 +68,14 @@ func TestDecompressExist(t *testing.T) {
},
nil,
},
{
"success: empty exist proof",
func() {
compressedExistProof = nil
},
nil,
nil,
},
{
"failure: path index out of bounds",
func() {
Expand Down

0 comments on commit 1c9d758

Please sign in to comment.