Moose/Report/Class.pm

filter: Statementstmt 100% 25 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 100% 1 / 1 totaltotal 100% 34 / 34 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Moose/Executor/Sequential.pm ↑ Summary Moose/Report/Instance.pm »
1 package Test::Class::Moose::Report::Class;
2  
3 # ABSTRACT: Reporting on test classes
4  
5 30 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 30 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 30 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 30 ▶use 5.010000;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 30 our $VERSION = '1.00';
12  
13 30 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 30 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 30 with qw(
17 Test::Class::Moose::Role::Reporting
18 );
19  
20 has test_instances => (
21 is => 'ro',
22 traits => ['Array'],
23 isa => 'ArrayRef[Test::Class::Moose::Report::Instance]',
24 45 ▶ default => sub { [] },
Subroutine __ANON__: called CC=1 SCAR=0.0
25 30 handles => {
26 all_test_instances => 'elements',
27 add_test_instance => 'push',
28 num_test_instances => 'count',
29 },
30 );
31  
32 153 ▶sub current_instance {
Subroutine current_instance: called CC=1 SCAR=0.0
Pod documented
33 153 my $self = shift;
34 153 return $self->test_instances->[-1];
35 }
36  
37 30 __PACKAGE__->meta->make_immutable;
38  
39 30 1;
40  
41 __END__
« Moose/Executor/Sequential.pm ↑ Summary Moose/Report/Instance.pm »