Wrapper/Exception.pm

filter: Statementstmt 81.4% 22 / 27 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 77.7% 7 / 9 Podpod 100% 4 / 4 totaltotal 80.9% 34 / 42 CC 2 SCAR 3.6
CC
2
Cov
79%
_stringify
2.1
output
2.0
status
2.0
CRAP 1.4
« Wrapper/Log.pm ↑ Summary Wrapper/Statuses.pm »
1 package Git::Wrapper::Exception;
2 # ABSTRACT: Exception class for Git::Wrapper
3 7 $Git::Wrapper::Exception::VERSION = '0.048_090'; # TRIAL
4  
5 7 ▶$Git::Wrapper::Exception::VERSION = '0.048090';use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 7 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 ▶sub new { my $class = shift; bless { @_ } => $class }
Subroutine new: called CC=1 SCAR=0.0
Pod documented
10  
11 7 ▶use overload (
Subroutine BEGIN: called CC=1 SCAR=0.0
12 7 q("") => '_stringify',
13 fallback => 1,
14 7 );
15  
16 1 ▶sub _stringify {
Subroutine _stringify: called CC=2 SCAR=7.6
17 1 my ($self) = @_;
18 1 my $error = $self->error;
19 1 ▶ return $error if $error =~ /\S/;
Branch: 1 branch
BranchTrueFalseTotal
if $error =~ /\S/ 1 0 1
20 0 return "git exited non-zero but had no output to stderr";
21 }
22  
23 0 ▶sub output { join "", map { "$_\n" } @{ shift->{output} } }
Subroutine output: not called CC=1 SCAR=6.9
Pod documented
24  
25 1 ▶sub error { join "", map { "$_\n" } @{ shift->{error} } }
Subroutine error: called CC=1 SCAR=0.0
Pod documented
26  
27 0 ▶sub status { shift->{status} }
Subroutine status: not called CC=1 SCAR=6.9
Pod documented
28  
29 7 1;
30  
31 __END__
« Wrapper/Log.pm ↑ Summary Wrapper/Statuses.pm »