mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-12-17 09:42:29 +08:00
go mod
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
package util
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"golang.org/x/tools/godoc/util"
|
||||
)
|
||||
|
||||
func TestIsGzippable(t *testing.T) {
|
||||
buf := make([]byte, 1024)
|
||||
|
||||
isText := util.IsText(buf)
|
||||
|
||||
if isText {
|
||||
t.Error("buf with zeros are not text")
|
||||
}
|
||||
|
||||
compressed, _ := GzipData(buf)
|
||||
|
||||
t.Logf("compressed size %d\n", len(compressed))
|
||||
}
|
||||
Reference in New Issue
Block a user