mirror of
https://github.com/octoleo/restic.git
synced 2024-11-30 00:33:57 +00:00
Fix Unpacker test
This commit is contained in:
parent
efbce9f0fa
commit
b88ccb4f1b
@ -67,7 +67,7 @@ func TestCreatePack(t *testing.T) {
|
|||||||
|
|
||||||
// read and parse it again
|
// read and parse it again
|
||||||
rd := bytes.NewReader(file.Bytes())
|
rd := bytes.NewReader(file.Bytes())
|
||||||
np, err := pack.NewUnpacker(k, nil, rd)
|
np, err := pack.NewUnpacker(k, rd)
|
||||||
OK(t, err)
|
OK(t, err)
|
||||||
Equals(t, len(np.Entries), len(bufs))
|
Equals(t, len(np.Entries), len(bufs))
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ func TestCreatePack(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var blobTypeJson = []struct {
|
var blobTypeJSON = []struct {
|
||||||
t pack.BlobType
|
t pack.BlobType
|
||||||
res string
|
res string
|
||||||
}{
|
}{
|
||||||
@ -94,7 +94,7 @@ var blobTypeJson = []struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestBlobTypeJSON(t *testing.T) {
|
func TestBlobTypeJSON(t *testing.T) {
|
||||||
for _, test := range blobTypeJson {
|
for _, test := range blobTypeJSON {
|
||||||
// test serialize
|
// test serialize
|
||||||
buf, err := json.Marshal(test.t)
|
buf, err := json.Marshal(test.t)
|
||||||
OK(t, err)
|
OK(t, err)
|
||||||
|
Loading…
Reference in New Issue
Block a user