BailOut.pm

filter: Statementstmt 68.7% 11 / 16 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 65.2% 15 / 23 CC 2 SCAR 11.0
CC
2
Cov
61%
as_tap
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« TestSet.pm ↑ Summary Plan/Todo.pm »
1 package TAP::Spec::BailOut;
2 2 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 $TAP::Spec::BailOut::AUTHORITY = 'cpan:ARODLAND';
4 }
5 {
6 2 $TAP::Spec::BailOut::VERSION = '0.10';
7 }
8 # ABSTRACT: A TAP Bail Out! line
9 2 ▶use Mouse;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 2 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12  
13 2 has 'reason' => (
14 is => 'rw',
15 isa => 'Str',
16 predicate => 'has_reason',
17 );
18  
19  
20 0 ▶sub as_tap {
Subroutine as_tap: not called CC=2 SCAR=17.9
Pod documented
21 0 my ($self) = @_;
22  
23 0 my $tap = "Bail out!";
24 0 ▶ $tap .= " " . $self->reason if $self->has_reason;
Branch: 1 branch
BranchTrueFalseTotal
if $self->has_reason 0 0 0
25 0 $tap .= "\n";
26  
27 0 return $tap;
28 }
29  
30 2 __PACKAGE__->meta->make_immutable;
31  
32 __END__
« TestSet.pm ↑ Summary Plan/Todo.pm »