Condition Coverage

blib/lib/Cisco/Reconfig.pm
Criterion Covered Total %
condition 59 99 59.6


and 3 conditions

line !l l&&!r l&&r condition
112 0 2 0 $indent + 1 == $in and $allow_plus_one_indent
0 2 0 $indent + 1 == $in and $allow_plus_one_indent and $line =~ /^\s*$allow_plus_one_indent/
116 2 0 0 $prev ne "!\n" and not $prev =~ /^!.*$/
129 88 0 2 $ciscobug and $in == 0
16 8 64 $last and $indent - 1 == $in
24 64 0 $last and $indent - 1 == $in and $allow_minus_one_indent
0 59 5 $last and $indent - 1 == $in and $allow_minus_one_indent and $line =~ /^\s*$allow_minus_one_indent/
145 15 538 435 @x and ref $$context{$x[0]}
203 542 2 8 $line =~ /(\^C)/ and not $line =~ /\^C.*\^C/
1 552 0 $line and ($line =~ /(\^C)/ and not $line =~ /\^C.*\^C/)
234 0 0 8 $line and $line =~ /${sep}[\r]?$/
289 25540 2 11630 defined $$self{$text} and not @p
343 45 33 16 $all and $$self{$subs}
370 0 0 55 defined $o and not $o =~ /\n$/
379 0 0 12 defined $_ && /\S/
390 0 0 14 defined $_ && /\S/
520 3 0 2 $self->block and $self->context
566 1 0 5 $old and not @o
1 0 5 $old and not @o and $old->subs
0 0 5 $old and not @o and $old->subs and $old->subs->next
623 31 0 11 /$regex/ && !/$spec/o
631 136 17 1 wantarray and @designators > 1
702 0 0 0 $self->single and $self->single->{$text}
0 0 0 $self->single and $self->single->{$text} and $self->subs->undefined

or 3 conditions

line l !l&&r !l&&!r condition
116 0 0 2 $indent != 0 or $prev ne "!\n" and not $prev =~ /^!.*$/
203 8 0 545 $line and ($line =~ /(\^C)/ and not $line =~ /\^C.*\^C/) or $line =~ /banner [a-z\-]+ ((?!\^C).+)/
243 1833 11618 0 $_[0]{$seqn} or $_[0]->endpt->{$seqn}
244 117 28 81 $_[0]{$subs} or $_[0]->zoom->{$subs}
245 23 0 5 $_[0]{$next} or $_[0]->zoom->{$next}
262 16 0 0 $$self{$p[0]}->single || $self
401 12 0 0 $_[0]->endpt->{$cntx} || ($_[0] ? confess("$_[0]") : $undef)
515 9 1 5 $designator || looks_like_a_block($desig, @lines)
581 2 0 3 not $ok or $f