GitGot/Command/that.pm

filter: Statementstmt 75.0% 12 / 16 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 9 MC/DCmcdc 0.0% 0 / 3 Subroutinesub 75.0% 3 / 4 Podpod n/a totaltotal 41.6% 15 / 36 CC 5 SCAR 29.5
CC
5
Cov
41%
_execute
30.0
BEGIN
1.0
BEGIN
1.0
CRAP 19.1
« GitGot/Command/readd.pm ↑ Summary GitGot/Command.pm »
1 package App::GitGot::Command::that;
2 16 our $AUTHORITY = 'cpan:GENEHACK';
3 16 $App::GitGot::Command::that::VERSION = '1.339';
4 # ABSTRACT: check if a given repository is managed
5 16 ▶use 5.014;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 16 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 16 extends 'App::GitGot::Command';
9 16 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 0 ▶sub _execute {
Subroutine _execute: not called CC=5 SCAR=34.0
12 0 my( $self, $opt, $args ) = @_;
13 0 my $path = pop @$args;
14  
15 0 ▶ defined $path and -d $path
Branch: 1 branch
BranchTrueFalseTotal
defined $path and -d $path or say STDERR "ERROR: You must provide a path to a repo to check" and exit 1 0 0 0
Condition0%0/9
defined $path && -d $path || say(STDERR 'ERROR: You must provide a path to a repo to check') && exit 1
l!l&&r!l&&!r
000
defined $path and -d $path
!ll&&!rl&&r
000
say STDERR "ERROR: You must provide a path to a repo to check" and exit 1
!ll
000
MC/DC0%0/3
defined $path && -d $path || say(STDERR 'ERROR: You must provide a path to a repo to check') && exit 1
defined $path -d $path say STDERR "ERROR: You must provide a path to a repo to check"
Truth table0%0/5
A and B || C
A= defined $pathB= -d $pathC= say STDERR "ERROR: You must provide a path to a repo to check"
ABCresult
11X1
0X11
1011
0X00
1000
16 or say STDERR 'ERROR: You must provide a path to a repo to check' and exit 1;
17  
18 0 ▶ $self->_path_is_managed( $path ) or exit 1;
Branch: 1 branch
BranchTrueFalseTotal
$self->_path_is_managed($path) or exit 1 0 0 0
19 }
20  
21 16 1;
22  
23 ## FIXME docs
24  
25 __END__
« GitGot/Command/readd.pm ↑ Summary GitGot/Command.pm »