fix test
This commit is contained in:
@@ -2,18 +2,19 @@ package main
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestExtractFromZip(t *testing.T) {
|
||||
buf := bytes.NewBuffer(nil)
|
||||
err := ExtractFromZip("testdata/test.zip", "**/foo.txt", buf)
|
||||
assert.NotNil(t, err)
|
||||
assert.Nil(t, err)
|
||||
t.Log("Content: " + buf.String())
|
||||
}
|
||||
|
||||
//func TestUnzipTo(t *testing.T){
|
||||
// err := unzipFile("testdata.zip", "./tmp")
|
||||
// assert.Nil(t, err)
|
||||
//}
|
||||
//}
|
||||
|
||||
Reference in New Issue
Block a user