Skip to content

Commit

Permalink
resolves a gofumpt issue
Browse files Browse the repository at this point in the history
  • Loading branch information
staheri14 committed Apr 11, 2023
1 parent 422368f commit 05017fc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions hasher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ func TestHashNode_ChildrenNamespaceRange(t *testing.T) {
"left.maxNs<right.minNs", 2,
children{
concat([]byte{0, 0, 1, 1}, randHash),
concat([]byte{2, 2, 3, 3}, randHash)},
concat([]byte{2, 2, 3, 3}, randHash),
},
false,
nil,
},
Expand Down Expand Up @@ -342,7 +343,8 @@ func TestValidateNodeFormat(t *testing.T) {
[]byte{},
true,
ErrInvalidNodeLen,
}, {
},
{
"invalid node: length < 2 * namespace.IDSize + hashSize",
2,
minNID,
Expand Down Expand Up @@ -496,7 +498,8 @@ func TestHashNode_ErrorsCheck(t *testing.T) {
},
{
"left.maxNs>right.minNs", 2,
children{concat([]byte{0, 0, 1, 1}, randHash),
children{
concat([]byte{0, 0, 1, 1}, randHash),
concat([]byte{0, 0, 1, 1}, randHash),
},
true,
Expand Down

0 comments on commit 05017fc

Please sign in to comment.