mirror of
https://github.com/hamburghammer/gohttpserver.git
synced 2024-05-13 00:04:36 +02:00
16 lines
250 B
Go
16 lines
250 B
Go
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())
|
|
}
|