Archive-Libarchive-Any
view release on metacpan or search on metacpan
t/common_00_diag.t view on Meta::CPAN
use strict;
use warnings;
use Test::More tests => 1;
use File::Basename qw( dirname );
use File::Spec;
use Archive::Libarchive::Any;
pass 'okay';
my $fn;
my $not_first;
$fn = File::Spec->catfile(
dirname( __FILE__ ),
File::Spec->updir,
'inc',
'constants.txt'
);
$not_first = 0;
diag '';
diag '';
foreach my $const (do { open my $fh, '<', $fn; <$fh> })
{
chomp $const;
unless(Archive::Libarchive::Any->can($const))
{
diag "missing constants:" unless $not_first++;
diag " - $const";
}
}
if($not_first)
{
diag '';
diag '';
}
$fn = File::Spec->catfile(
dirname( __FILE__ ),
File::Spec->updir,
'inc',
'functions.txt'
);
$not_first = 0;
foreach my $func (do { open my $fh, '<', $fn; <$fh> })
{
chomp $func;
unless(Archive::Libarchive::Any->can($func))
{
diag "missing functions:" unless $not_first++;
diag " - $func";
}
}
if($not_first)
{
diag '';
diag '';
}
eval q{ use Archive::Libarchive::Any };
diag $@ if $@;
diag 'archive_perl_codeset: ' . eval q{ Archive::Libarchive::Any::archive_perl_codeset() };
diag $@ if $@;
( run in 0.262 second using v1.01-cache-2.11-cpan-4d4bc49f3ae )