Debian Codegraph @

t/700_roundtrip/v5/zstd.t

raw
1 #!perl
2 use strict;
3 use warnings;
4 use Data::Dumper;
5 use File::Spec;
6
7 use lib File::Spec->catdir(qw(t lib));
8
9 BEGIN {
10 lib->import('lib')
11 if !-d 't';
12 }
13
14 use Sereal::TestSet qw(:all);
15 use Test::More;
16
17 my $ok = have_encoder_and_decoder();
18 if ( not $ok ) {
19 plan skip_all => 'Did not find right version of encoder';
20 }
21 else {
22 run_roundtrip_tests(
23 'zstd',
24 {
25 compress => Sereal::Encoder::SRL_ZSTD(),
26 } );
27 }
28
29 pass();
30 done_testing();
31