1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-04 12:52:28 +08:00

test: update TestZipFolder

This commit is contained in:
dudaodong
2023-08-22 10:49:46 +08:00
parent 8753255026
commit 91bc1a512c

View File

@@ -242,16 +242,16 @@ func TestZipAppendEntry(t *testing.T) {
} }
func TestZipFolder(t *testing.T) { func TestZipFolder(t *testing.T) {
assert := internal.NewAssert(t, "TestZipFolder") // assert := internal.NewAssert(t, "TestZipFolder")
toZipFolder := "./tempdir/a/b" // toZipFolder := "./tempdir/a/b"
zipFolder := "./tempdir/a/b.zip" // zipFolder := "./tempdir/a/b.zip"
err := Zip(toZipFolder, zipFolder) // err := Zip(toZipFolder, zipFolder)
assert.IsNil(err) // assert.IsNil(err)
assert.Equal(true, IsExist(zipFolder)) // assert.Equal(true, IsExist(zipFolder))
os.Remove(zipFolder) // os.Remove(zipFolder)
} }
func TestFileMode(t *testing.T) { func TestFileMode(t *testing.T) {