r38051 - in /branches/upstream/libmodule-cpants-analyse-perl/current/t: analyse_axkit_xsp_l10n.t analyse_devel_timer.t

ryan52-guest at users.alioth.debian.org ryan52-guest at users.alioth.debian.org
Fri Jun 12 02:37:12 UTC 2009


Author: ryan52-guest
Date: Fri Jun 12 02:36:55 2009
New Revision: 38051

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=38051
Log:
[svn-upgrade] Integrating new upstream version, libmodule-cpants-analyse-perl (0.83+dfsg)

Added:
    branches/upstream/libmodule-cpants-analyse-perl/current/t/analyse_axkit_xsp_l10n.t
    branches/upstream/libmodule-cpants-analyse-perl/current/t/analyse_devel_timer.t

Added: branches/upstream/libmodule-cpants-analyse-perl/current/t/analyse_axkit_xsp_l10n.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmodule-cpants-analyse-perl/current/t/analyse_axkit_xsp_l10n.t?rev=38051&op=file
==============================================================================
--- branches/upstream/libmodule-cpants-analyse-perl/current/t/analyse_axkit_xsp_l10n.t (added)
+++ branches/upstream/libmodule-cpants-analyse-perl/current/t/analyse_axkit_xsp_l10n.t Fri Jun 12 02:36:55 2009
@@ -1,0 +1,34 @@
+use strict;
+use warnings;
+
+use Test::More tests => 14;
+use Test::NoWarnings;
+
+use Module::CPANTS::Analyse;
+use File::Spec::Functions;
+my $a=Module::CPANTS::Analyse->new({
+    dist=>'t/eg/AxKit-XSP-L10N-0.03.tar.gz',
+    _dont_cleanup=>$ENV{DONT_CLEANUP},
+});
+
+my $rv=$a->unpack;
+is($rv,undef,'unpack ok');
+
+$a->analyse;
+
+my $d=$a->d;
+
+is($d->{files},28,'files');
+is($d->{size_packed},14486,'size_packed');
+is(ref($d->{modules}),'ARRAY','modules is ARRAY');
+is($d->{modules}[0]->{module},'AxKit::XSP::L10N','module');
+is(ref($d->{prereq}),'ARRAY','prereq is ARRAY');
+is($d->{prereq}[0]->{requires},'mod_perl','prereq');
+is(ref($d->{uses}),'HASH','uses is HASH');
+is($d->{uses}{'Test::More'}{in_tests},6,'uses');
+ok($d->{file_meta_yml},'has_yaml');
+ok($d->{metayml_is_parsable},'metayml_is_parsable');
+is($d->{license},'perl defined in META.yaml defined in LICENSE','LICENSE');
+ok(!$d->{needs_compiler}, 'does not need compiler');
+
+

Added: branches/upstream/libmodule-cpants-analyse-perl/current/t/analyse_devel_timer.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmodule-cpants-analyse-perl/current/t/analyse_devel_timer.t?rev=38051&op=file
==============================================================================
--- branches/upstream/libmodule-cpants-analyse-perl/current/t/analyse_devel_timer.t (added)
+++ branches/upstream/libmodule-cpants-analyse-perl/current/t/analyse_devel_timer.t Fri Jun 12 02:36:55 2009
@@ -1,0 +1,33 @@
+use Test::More tests => 13;
+
+use Module::CPANTS::Analyse;
+use File::Spec::Functions;
+my $a=Module::CPANTS::Analyse->new({
+    dist=>'t/eg/Devel-Timer-0.02.tar.gz',
+    _dont_cleanup=>$ENV{DONT_CLEANUP},
+});
+
+my $rv=$a->unpack;
+is($rv,undef,'unpack ok');
+
+$a->analyse;
+
+my $d=$a->d;
+
+is($d->{files},12,'files');
+is($d->{size_packed},10646,'size_packed');
+is(ref($d->{modules}),'ARRAY','modules is ARRAY');
+my $modcount=grep {$_->{module} eq 'Devel::Timer'} @{$d->{modules}};
+is($modcount,1,'module');
+is(ref($d->{prereq}),'','prereq is empty');
+is(ref($d->{uses}),'HASH','uses is HASH');
+is($d->{uses}{'Test::More'}{in_tests},3,'uses');
+ok($d->{file_meta_yml},'has_yaml');
+ok($d->{metayml_is_parsable},'metayml_is_parsable');
+ok(!$d->{metayml_parse_error},'metayml_parse_error was not set');
+ok(!$d->{license},'no license');
+ok(!$d->{needs_compiler}, 'does not need compiler');
+
+#use Data::Dumper;
+#diag(Dumper $d);
+




More information about the Pkg-perl-cvs-commits mailing list