Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update user_test.go
  • Loading branch information
gabriel committed Sep 17, 2020
commit a437c80d03d89b01ec60eae0ca08bed4a1e2964e
9 changes: 0 additions & 9 deletions user/user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package user_test
import (
"bytes"
"encoding/json"
"io/ioutil"
"path/filepath"
"testing"

"github.com/keys-pub/keys"
Expand All @@ -17,13 +15,6 @@ func testSeed(b byte) *[32]byte {
return keys.Bytes32(bytes.Repeat([]byte{b}, 32))
}

func testdata(t *testing.T, path string) []byte {
b, err := ioutil.ReadFile(filepath.Join("..", path))
require.NoError(t, err)
b = bytes.ReplaceAll(b, []byte{'\r'}, []byte{})
return b
}

func TestNewValidate(t *testing.T) {
var err error
alice := keys.NewEdX25519KeyFromSeed(testSeed(0x01))
Expand Down