SKIP: {
eval { require Digest::HMAC_SHA1 };
- skip join( " ", "no Digest::HMAC", ( $@ =~ /\@INC/ ? () : do { chomp(my $e = $@); "($e)" } ) ), 15 if $@;
+ if ($@)
+ {
+ my $message = join( " ", "no Digest::HMAC", ( $@ =~ /\@INC/ ? () : do { chomp(my $e = $@); "($e)" } ) );
+ die $message if $ENV{AUTHOR_TESTING};
+ skip $message, 15;
+ }
local $::DEBUG = 1;
MooseX::Storage::Util->peek($json => ('format' => 'JSON'))
};
if ($@ =~ /^Could not load JSON module because/) {
+ die 'No JSON module found' if $ENV{AUTHOR_TESTING};
skip "No JSON module found", 1;
}
if ($@ =~ /^Could not load YAML module because/
or $@ =~ /^Can't locate Best/
) {
+ die 'No YAML module found' if $ENV{AUTHOR_TESTING};
skip "No YAML module found", 1;
}