1. Toby Inkster
  2. p5-moosex-funkyattributes

Commits

Toby Inkster  committed e27c9f3

update xt test cases

  • Participants
  • Parent commits f8360bf
  • Branches default

Comments (0)

Files changed (7)

File examples/funky-circle.pl

View file
  • Ignore whitespace
 			$self->diameter,
 			$self->circumference,
 			$self->area,
-		);	
+		);
 	}
 
 	__PACKAGE__->meta->make_immutable;

File meta/changes.pret

View file
  • Ignore whitespace
 		item "Include example scripts."^^Documentation;
 		item "Show MooseX::CustomInitArgs in example, and include in SEE ALSO."^^Documentation;
 		item "Document the test suite."^^Documentation;
+		item "Document the metaobject interface (albeit briefly)."^^Documentation;
 	].
 

File t/02funky.t

View file
  • Ignore whitespace
 	no thanks;
 	use Moose;
 	use MooseX::FunkyAttributes;
-	use constant PI => 3.14159; 
+	use constant PI => 3.14159;
 	has radius => (
 		is         => 'rw',
 		isa        => 'Num',

File t/03insideout.t

View file
  • Ignore whitespace
 	no thanks;
 	use Moose;
 	use MooseX::FunkyAttributes;
-	use constant PI => 3.14159; 
+	use constant PI => 3.14159;
 	has radius => (
 		traits     => [ InsideOutAttribute ],
 		is         => 'rw',

File xt/02pod_coverage.t

View file
  • Ignore whitespace
+use XT::Util;
 use Test::More;
 use Test::Pod::Coverage;
 
-my @modules = qw(MooseX::FunkyAttributes);
-pod_coverage_ok($_, "$_ is covered") for @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/05tabs.t

View file
  • Ignore whitespace
+use Test::Tabs;
+all_perl_files_ok();

File xt/06versions.t

View file
  • Ignore whitespace
+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();
+}
+