Skip to content
Permalink
Browse files

Explicit dropped variables (#33)

explicit unused variables, unused bignum
  • Loading branch information...
alrs authored and mrjoshuak committed Nov 6, 2019
1 parent 36f8e38 commit 7b72be3b135ec11149eb99255db8ddd956c41c4d
Showing with 4 additions and 7 deletions.
  1. +1 −1 id/tree_test.go
  2. +0 −3 id_test.go
  3. +1 −1 internals_test.go
  4. +2 −2 store/logger_test.go
@@ -58,7 +58,7 @@ func TestTree(t *testing.T) {
id := c4.Identify(bytes.NewReader([]byte{uint8(i)}))
digests[i] = id.Digest()
}
tree = c4.NewTree(digests)
_ = c4.NewTree(digests)
}

}
@@ -6,7 +6,6 @@ import (
"errors"
"fmt"
"io"
"math/big"
"sort"
"strconv"
"strings"
@@ -64,8 +63,6 @@ func TestAll0000(t *testing.T) {
for i := 0; i < 64; i++ {
b = append(b, 0x00)
}
bignum := big.NewInt(0)
bignum = bignum.SetBytes(b)
var id c4.ID
copy(id[:], b)
if id.String() != `c41111111111111111111111111111111111111111111111111111111111111111111111111111111111111111` {
@@ -73,7 +73,7 @@ func TestTree(t *testing.T) {
id := Identify(bytes.NewReader([]byte{uint8(i)}))
digests[i] = id
}
tree = NewTree(digests)
_ = NewTree(digests)
}

}
@@ -41,7 +41,7 @@ func TestLoggerStore(t *testing.T) {
t.Errorf("log output for Create does not match expected")
}
// Test Logger io.WriteCloser Write
n, err = w.Write([]byte(testdata))
_, err = w.Write([]byte(testdata))
if err != nil {
t.Fatal(err)
}
@@ -87,7 +87,7 @@ func TestLoggerStore(t *testing.T) {
t.Errorf("log output for Read does not match expected")
}

n, err = f.Read(data2)
_, err = f.Read(data2)
if err != io.EOF {
t.Errorf("expected io.EOF, but got %v", err)
}

0 comments on commit 7b72be3

Please sign in to comment.
You can’t perform that action at this time.