@@ -275,6 +275,16 @@ def test_compressor_explode(self, tmp_path, compressor):
275
275
icf = self .run_explode (tmp_path , compressor = compressor )
276
276
assert icf .metadata .compressor == compressor .get_config ()
277
277
278
+ def test_default_compressor_explode (self , tmp_path ):
279
+ icf = self .run_explode (tmp_path )
280
+ assert icf .metadata .compressor == vcf .ICF_DEFAULT_COMPRESSOR .get_config ()
281
+ assert icf .metadata .compressor ["cname" ] == "zstd"
282
+
283
+ def test_default_compressor_dexplode (self , tmp_path ):
284
+ icf = self .run_dexplode (tmp_path )
285
+ assert icf .metadata .compressor == vcf .ICF_DEFAULT_COMPRESSOR .get_config ()
286
+ assert icf .metadata .compressor ["cname" ] == "zstd"
287
+
278
288
@pytest .mark .parametrize (
279
289
"compressor" ,
280
290
[
@@ -340,7 +350,8 @@ def test_empty_chunk_file(self, tmp_path):
340
350
with pytest .raises (RuntimeError , match = "blosc" ):
341
351
icf ["POS" ].values
342
352
343
- @pytest .mark .parametrize ("length" , [10 , 100 , 200 , 210 ])
353
+ # Chunk file is 195 long
354
+ @pytest .mark .parametrize ("length" , [10 , 100 , 190 , 194 ])
344
355
def test_truncated_chunk_file (self , tmp_path , length ):
345
356
icf_path = tmp_path / "icf"
346
357
vcf .explode (icf_path , [self .data_path ])
@@ -359,7 +370,7 @@ def test_chunk_incorrect_length(self, tmp_path):
359
370
icf_path = tmp_path / "icf"
360
371
vcf .explode (icf_path , [self .data_path ])
361
372
chunk_file = icf_path / "POS" / "p0" / "2"
362
- compressor = numcodecs .Blosc (cname = "lz4 " )
373
+ compressor = numcodecs .Blosc (cname = "zstd " )
363
374
with open (chunk_file , "rb" ) as f :
364
375
pkl = compressor .decode (f .read ())
365
376
x = pickle .loads (pkl )
0 commit comments