From b0cce5cd663ea82738fb879ef42f4fad1f777774 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Colin=20Axn=C3=A9r?= <25233464+colin-axner@users.noreply.github.com> Date: Wed, 25 Sep 2024 16:14:26 +0200 Subject: [PATCH] lint --- go/ops_test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/go/ops_test.go b/go/ops_test.go index 440a08a..4629883 100644 --- a/go/ops_test.go +++ b/go/ops_test.go @@ -94,12 +94,12 @@ func TestForgeNonExistenceProofWithIncorrectMaxPrefixLength(t *testing.T) { Value: []byte("a"), Leaf: leafOp, Path: []*InnerOp{ - &InnerOp{ + { Hash: spec.InnerSpec.Hash, Prefix: []byte{1}, Suffix: append(bLeaf, b2Leaf...), }, - &InnerOp{ + { Hash: spec.InnerSpec.Hash, Prefix: []byte{1}, Suffix: cLeaf, @@ -111,12 +111,12 @@ func TestForgeNonExistenceProofWithIncorrectMaxPrefixLength(t *testing.T) { Value: []byte("b"), Leaf: leafOp, Path: []*InnerOp{ - &InnerOp{ + { Hash: spec.InnerSpec.Hash, Prefix: append([]byte{1}, aLeaf...), Suffix: b2Leaf, }, - &InnerOp{ + { Hash: spec.InnerSpec.Hash, Prefix: []byte{1}, Suffix: cLeaf, @@ -128,12 +128,12 @@ func TestForgeNonExistenceProofWithIncorrectMaxPrefixLength(t *testing.T) { Value: []byte("b2"), Leaf: leafOp, Path: []*InnerOp{ - &InnerOp{ + { Hash: spec.InnerSpec.Hash, Prefix: append(append([]byte{1}, aLeaf...), bLeaf...), Suffix: []byte{}, }, - &InnerOp{ + { Hash: spec.InnerSpec.Hash, Prefix: []byte{1}, Suffix: cLeaf, @@ -146,7 +146,7 @@ func TestForgeNonExistenceProofWithIncorrectMaxPrefixLength(t *testing.T) { Value: []byte("c"), Leaf: leafOp, Path: []*InnerOp{ - &InnerOp{ + { Hash: spec.InnerSpec.Hash, Prefix: append([]byte{1}, yHash...), Suffix: []byte{},