blib/lib/Devel/Cover/Condition.pm untested

filter: Statementstmt 0.0% 0 / 23 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 0.0% 0 / 11 Podpod 0.0% 0 / 6 totaltotal 0.0% 0 / 43 CC 1 SCAR 6.9
CC
1
Cov
0%
pad
2.0
text
2.0
type
2.0
CRAP 2.0
1 # Copyright 2001-2026, Paul Johnson (paul@pjcj.net)
2  
3 # This software is free. It is licensed under the same terms as Perl itself.
4  
5 # The latest version of this software should be available from my homepage:
6 # https://pjcj.net
7  
8 package Devel::Cover::Condition;
9  
10 use strict;
11 use warnings;
12  
13 our $VERSION = '1.52'; # VERSION
14  
15 use base "Devel::Cover::Branch";
16  
17 sub pad { $_[0][0][$_] ||= 0 for 0 .. $_[0]->count - 1 }
18 sub text { "$_[0][1]{left} $_[0][1]{op} $_[0][1]{right}" }
19 sub type { $_[0][1]{type} }
20 sub count { require Carp; Carp::confess("count() must be overridden") }
21 sub headers { require Carp; Carp::confess("headers() must be overridden") }
22 sub criterion { "condition" }
23  
24 1
25  
26 __END__