Commits

Toby Inkster  committed 06c2982

author tests

  • Participants
  • Parent commits c2cf03e
  • Tags 0.002

Comments (0)

Files changed (7)

File lib/Hash/DefaultValue.pm

 
 use constant {
 	IDX_HASH   => 0,
-	IDX_CODE   => 1, 
+	IDX_CODE   => 1,
 	NEXT_IDX   => 2,
 };
 use constant _default => undef;

File meta/doap.pret

 	:bug-database   <http://rt.cpan.org/Dist/Display.html?Queue=Hash-DefaultValue> ;
 	:created        2012-05-18 ;
 	:license        <http://dev.perl.org/licenses/> ;
-	:developer      cpan:TOBYINK .
-	:maintainer     cpan:TOBYINK, cpan:VOJ .
+	:developer      cpan:TOBYINK ;
+	:maintainer     cpan:TOBYINK , cpan:VOJ .
 
 <http://dev.perl.org/licenses/>
 	dc:title        "the same terms as the perl 5 programming language system itself" .

File xt/02pod_coverage.t

+use XT::Util;
 use Test::More;
 use Test::Pod::Coverage;
 
-my @modules = qw(Hash::DefaultValue);
-pod_coverage_ok($_, "$_ is covered")
-	foreach @modules;
-done_testing(scalar @modules);
+plan skip_all => __CONFIG__->{skip_all}
+	if __CONFIG__->{skip_all};
 
+if ( __CONFIG__->{modules} )
+{
+	my @modules = @{ __CONFIG__->{modules} };
+	pod_coverage_ok($_, "$_ is covered") for @modules;
+	done_testing(scalar @modules);
+}
+else
+{
+	all_pod_coverage_ok();
+}
+

File xt/03meta_uptodate.config

+{"package":"Hash-DefaultValue"}

File xt/03meta_uptodate.t

+use XT::Util;
 use Test::More tests => 1;
 use Test::RDF::DOAP::Version;
-doap_version_ok('Hash-DefaultValue', 'Hash::DefaultValue');
+doap_version_ok(__CONFIG__->{package}, __CONFIG__->{version_from});
 
+use Test::Tabs;
+all_perl_files_ok();

File xt/06versions.t

+use XT::Util;
+use Test::More;
+use Test::HasVersion;
+
+plan skip_all => __CONFIG__->{skip_all}
+	if __CONFIG__->{skip_all};
+
+if ( __CONFIG__->{modules} )
+{
+	my @modules = @{ __CONFIG__->{modules} };
+	pm_version_ok($_, "$_ is covered") for @modules;
+	done_testing(scalar @modules);
+}
+else
+{
+	all_pm_version_ok();
+}
+