lib/App/githook/perltidy/install_CI.pm

filter: Statementstmt 94.6% 53 / 56 Branchbran 61.1% 11 / 18 Conditioncond 33.3% 2 / 6 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 91.6% 11 / 12 Podpod 0.0% 0 / 3 totaltotal 77.7% 77 / 99 CC 13 SCAR 15.4
CC
13
Cov
82%
new
9.6
import
3.1
absolute
2.0
CRAP 4.6
« lib/App/githook/perltidy/pre_commit_CI.pm ↑ Summary lib/App/githook/perltidy.pm »
1 # Generated by Class::Inline version 0.0.1
2 # Date: Fri Oct 14 11:22:23 2022
3 9 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 9 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 0 ▶package App::githook::perltidy::install;BEGIN {require App::githook::perltidy;our@ISA=('App::githook::perltidy')};our$_HAS;sub App::githook::perltidy::install_CI::import {shift;$_HAS={@_ > 1 ? @_ : %{$_[0]}};$_HAS=$_HAS->{'has'}if exists$_HAS->{'has'}}our%_ATTRS;my%_BUILD_CHECK;sub new {my$class=shift;my$self={@_ ? @_ > 1 ? @_ : %{$_[0]}: ()};%_ATTRS=map {($_=>1)}keys %$self;bless$self,ref$class || $class;$_BUILD_CHECK{$class}//= do {my@possible=($class);my@BUILD;my@CHECK;while (@possible){no strict 'refs';my$c=shift@possible;push@BUILD,$c .'::BUILD' if exists &{$c .'::BUILD'};push@CHECK,$c .'::__CHECK' if exists &{$c .'::__CHECK'};push@possible,@{$c .'::ISA'}}[reverse(@CHECK),reverse(@BUILD)]};map {$self->$_}@{$_BUILD_CHECK{$class}};Carp::carp("App::githook::perltidy::install attribute '$_' unexpected")for keys%_ATTRS;$self}sub __RO {my (undef,undef,undef,$sub)=caller(1);Carp::croak("attribute $sub is read-only")}sub __CHECK {no strict 'refs';my$_attrs=*{ref($_[0]).'::_ATTRS'};map {delete$_attrs->{$_}}keys %$_HAS}sub absolute {$_[0]->__RO($_[1])if @_ > 1;$_[0]{'absolute'}}sub force {$_[0]->__RO($_[1])if @_ > 1;$_[0]{'force'}}BEGIN {$INC{'App/githook/perltidy/install.pm'}=__FILE__}
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine __CHECK: called CC=1 SCAR=0.1
Subroutine __RO: not called CC=1 SCAR=0.1
Subroutine absolute: called CC=2 SCAR=7.1
Subroutine force: called CC=2 SCAR=7.1
Subroutine import: called CC=3 SCAR=11.2
Subroutine new: called CC=9 SCAR=22.6
Pod undocumented
Pod undocumented
Pod undocumented
Branch: 9 branches
BranchTrueFalseTotal
if @_ > 1 0 10 10
if @_ > 1 0 10 10
@_ > 1 ? : 9 0 9
if exists $App::githook::perltidy::install::_HAS->{"has"} 9 0 9
@_ ? : 9 0 9
@_ > 1 ? : 0 9 9
if (@possible) 18 9 27
if exists &{$c . '::BUILD';} 9 9 18
if exists &{$c . '::__CHECK';} 18 0 18
Condition33%2/6
ref $class || $class
l!l&&r!l&&!r
090
$_BUILD_CHECK{$class} //= do { my(@possible) = $class; my(@BUILD, @CHECK); while (@possible) { no strict 'refs'; my $c = shift @possible; push @BUILD, $c . '::BUILD' if exists &{$c . '::BUILD';}; push @CHECK, $c . '::__CHECK' if exists &{$c . '::__CHECK';}; push @possible, @{$c . '::ISA';}; } ; [reverse(@CHECK), reverse(@BUILD)] }
l!l&&r!l&&!r
090
MC/DC0%0/2
ref $class || $class
ref $class $class
MC/DC0%0/2
$_BUILD_CHECK{$class} //= do { my(@possible) = $class; my(@BUILD, @CHECK); while (@possible) { no strict 'refs'; my $c = shift @possible; push @BUILD, $c . '::BUILD' if exists &{$c . '::BUILD';}; push @CHECK, $c . '::__CHECK' if exists &{$c . '::__CHECK';}; push @possible, @{$c . '::ISA';}; } ; [reverse(@CHECK), reverse(@BUILD)] }
$_BUILD_CHECK{$class} do { my(@possible) = $class; my(@BUILD, @CHECK); while (@possible) { no strict 'refs'; my $c = shift @possible; push @BUILD, $c . '::BUILD' if exists &{$c . '::BUILD';}; push @CHECK, $c . '::__CHECK' if exists &{$c . '::__CHECK';}; push @possible, @{$c . '::ISA';}; } ; [reverse(@CHECK), reverse(@BUILD)] }
Truth table33%1/3
A || B
A= ref $classB= $class
ABresult
1X1
011
000
Truth table33%1/3
A //= B
A= $_BUILD_CHECK{$class}B= do { my(@possible) = $class; my(@BUILD, @CHECK); while (@possible) { no strict 'refs'; my $c = shift @possible; push @BUILD, $c . '::BUILD' if exists &{$c . '::BUILD';}; push @CHECK, $c . '::__CHECK' if exists &{$c . '::__CHECK';}; push @possible, @{$c . '::ISA';}; } ; [reverse(@CHECK), reverse(@BUILD)] }
ABresult
1X1
011
000
7 9 1;
« lib/App/githook/perltidy/pre_commit_CI.pm ↑ Summary lib/App/githook/perltidy.pm »