X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F030_with_checksum.t;h=98925004a6340c2ec61ee744c0f344bb30ccc606;hb=d7ef03f6e65591eec83471f6887f5928451c494a;hp=c144ec2c5ca90d5bfa0a7a240484554d4801689a;hpb=34dcaa5dd9078dbf394ffc0f326765244675faab;p=gitmo%2FMooseX-Storage.git diff --git a/t/030_with_checksum.t b/t/030_with_checksum.t index c144ec2..9892500 100644 --- a/t/030_with_checksum.t +++ b/t/030_with_checksum.t @@ -3,11 +3,16 @@ use strict; use warnings; -use Test::More tests => 26; +use Test::More; use Test::Exception; use Test::Deep; BEGIN { + eval "use Digest; use Digest::SHA1"; + plan skip_all => "Digest and Digest::SHA1 is required for this test" if $@; + eval "use JSON::Any"; + plan skip_all => "JSON::Any is required for this test" if $@; + plan tests => 26; use_ok('MooseX::Storage'); } @@ -112,7 +117,7 @@ BEGIN { SKIP: { eval { require Digest::HMAC_SHA1 }; - skip join( " ", "no Digest::HMAC", ( $@ =~ /\@INC/ ? () : do { chomp(my $e = $@); "($e)" } ) ), 14 if $@; + skip join( " ", "no Digest::HMAC", ( $@ =~ /\@INC/ ? () : do { chomp(my $e = $@); "($e)" } ) ), 15 if $@; local $::DEBUG = 1;