Sweet/Meta/Test.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 0.0% 0 / 3 totaltotal 89.2% 25 / 28 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Sweet/Types.pm ↑ Summary Sweet/Exception.pm »
1 package Test::Sweet::Meta::Test;
2 3 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 $Test::Sweet::Meta::Test::VERSION = '0.03';
4 }
5 # ABSTRACT: object representing a test case
6 3 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 3 ▶use MooseX::Types::Moose qw(CodeRef);
Subroutine BEGIN: called CC=1 SCAR=0.0
8 3 ▶use Test::Sweet::Types qw(SuiteClass);
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 3 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 3 has 'test_body' => (
13 is => 'ro',
14 isa => CodeRef,
15 required => 1,
16 );
17  
18 16 ▶sub run {
Subroutine run: called CC=1 SCAR=0.0
Pod undocumented
19 16 my ($self, $suite_class, @user_args) = @_;
20 16 $self->test_body->($suite_class, $self, @user_args);
21 }
22  
23 # so roles can before/after/around these
24 17 ▶sub BUILD {}
Subroutine BUILD: called CC=1 SCAR=0.0
Pod undocumented
25 16 ▶sub DEMOLISH {}
Subroutine DEMOLISH: called CC=1 SCAR=0.0
Pod undocumented
26  
27 3 1;
28  
29  
30  
31 =pod
32  
33 =head1 NAME
34  
35 Test::Sweet::Meta::Test - object representing a test case
36  
37 =head1 VERSION
38  
39 version 0.03
40  
41 =head1 AUTHOR
42  
43 Jonathan Rockway <jrockway@cpan.org>
44  
45 =head1 COPYRIGHT AND LICENSE
46  
47 This software is copyright (c) 2011 by Jonathan Rockway.
48  
49 This is free software; you can redistribute it and/or modify it under
50 the same terms as the Perl 5 programming language system itself.
51  
52 =cut
53  
54  
55 __END__
« Sweet/Types.pm ↑ Summary Sweet/Exception.pm »