blib/lib/Sidekick/Check/Plugin/Filled.pm

filter: Statementstmt 90.0% 9 / 10 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 66.6% 2 / 3 Podpod 0.0% 0 / 1 totaltotal 64.7% 11 / 17 CC 2 SCAR 12.5
CC
2
Cov
75%
check
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.5
↑ Summary
1 #!/usr/bin/perl
2 package Sidekick::Check::Plugin::Filled;
3 {
4 1 $Sidekick::Check::Plugin::Filled::VERSION = '0.0.1';
5 }
6  
7 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 0 ▶sub check { return length $_[1] || 0 }
Subroutine check: not called CC=2 SCAR=17.9
Pod undocumented
Condition0%0/2
length $_[1] || 0
l!l
00
MC/DC0%0/1
length $_[1] || 0
length $_[1]
Truth table0%0/2
A
A= length $_[1]
Aresult
11
00
11  
12 1 1;
13 # ABSTRACT: Check if a given value is filled
14 # vim:ts=4:sw=4:syn=perl
15  
16 __END__
↑ Summary