Skip to content

Commit 29e83c1

Browse files
committed
chore(Issue 121): Adding zstd and gzip decom bomb unit test.
Adding zstd case for decom bomb unit test. Uncommenting gzip decom bomb unit test, as that was left commented out by accident.
1 parent 6407e47 commit 29e83c1

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

internal/compression/Compressor_test.go

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,18 @@ func TestDecompressBomb(t *testing.T) {
8787
name string
8888
algorithm string
8989
}{
90-
// {
91-
// name: "With Gzip Algorithm",
92-
// algorithm: constants.CompressionTypeGzip,
93-
// },
90+
{
91+
name: "With Gzip Algorithm",
92+
algorithm: constants.CompressionTypeGzip,
93+
},
9494
{
9595
name: "With LZ4 Algorithm",
9696
algorithm: constants.CompressionTypeLz4,
9797
},
98+
{
99+
name: "With Zstd Algorithm",
100+
algorithm: constants.CompressionTypeLz4,
101+
},
98102
}
99103

100104
for _, tt := range tests {

0 commit comments

Comments
 (0)