aboutsummaryrefslogtreecommitdiff
path: root/internal/stdlib/stdlib_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/stdlib/stdlib_test.go')
-rw-r--r--internal/stdlib/stdlib_test.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/internal/stdlib/stdlib_test.go b/internal/stdlib/stdlib_test.go
index 77a42c7c..253c84cd 100644
--- a/internal/stdlib/stdlib_test.go
+++ b/internal/stdlib/stdlib_test.go
@@ -174,6 +174,22 @@ func TestZip(t *testing.T) {
}
}
+func TestZipInfo(t *testing.T) {
+ UseTestData = true
+ defer func() { UseTestData = false }()
+
+ gotVersion, gotSize, err := ZipInfo("v1.14.6")
+ if err != nil {
+ t.Fatal(err)
+ }
+ if want := "v1.14.6"; gotVersion != want {
+ t.Errorf("version: got %q, want %q", gotVersion, want)
+ }
+ if want := int64(estimatedZipSize); gotSize != want {
+ t.Errorf("size: got %d, want %d", gotSize, want)
+ }
+}
+
func TestVersions(t *testing.T) {
UseTestData = true
defer func() { UseTestData = false }()