(Chore): Updated the unit test to reflect the changes in types.go
This commit is contained in:
@@ -14,6 +14,7 @@ func TestArchiveTypeConstants(t *testing.T) {
|
|||||||
{"TARGZ type", TARGZ, "TAR.GZ"},
|
{"TARGZ type", TARGZ, "TAR.GZ"},
|
||||||
{"TAR type", TAR, "TAR"},
|
{"TAR type", TAR, "TAR"},
|
||||||
{"GZIP type", GZIP, "GZIP"},
|
{"GZIP type", GZIP, "GZIP"},
|
||||||
|
{"RAR type", RAR, "RAR"},
|
||||||
{"AUTO type", AUTO, "AUTO"},
|
{"AUTO type", AUTO, "AUTO"},
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -90,4 +91,4 @@ func TestArchiveInfo(t *testing.T) {
|
|||||||
if len(info.Files) != 1 {
|
if len(info.Files) != 1 {
|
||||||
t.Errorf("Files length = %d; want %d", len(info.Files), 1)
|
t.Errorf("Files length = %d; want %d", len(info.Files), 1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user