Metrics
0
Watch 25 Star 79 Fork 18

codeskyblue / gohttpserverGoMIT

Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
The best HTTP Static File Server, write with golang spread retract

Clone or download
zip_test.go 250 Bytes
Copy Edit Web IDE Raw Blame History
codeskyblue authored 2016-07-30 09:31 . fix tests
package main
import (
"bytes"
"testing"
)
func TestExtractFromZip(t *testing.T) {
buf := bytes.NewBuffer(nil)
err := ExtractFromZip("testdata/test.zip", "**/foo.txt", buf)
if err != nil {
t.Fatal(err)
}
t.Log("Content: " + buf.String())
}

Comment ( 0 )

You need to Sign in for post a comment

Help Search

183227_9af5e6a8_1826025 111910_4d91f001_1826025