Condition Coverage

blib/lib/Cisco/Reconfig.pm
Criterion Covered Total %
condition 60 99 60.6


and 3 conditions

line !l l&&!r l&&r condition
112 0 0 2 $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 0 64 $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 536 432 @x and ref $$context{$x[0]}
203 540 2 8 $line =~ /(\^C)/ and not $line =~ /\^C.*\^C/
1 542 8 $line and ($line =~ /(\^C)/ and not $line =~ /\^C.*\^C/)
234 0 0 8 $line and $line =~ /${sep}[\r]?$/
289 25290 2 11572 defined $self->{$text} and not @p
344 43 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 135 17 1 wantarray and @designators > 1
703 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 543 $line and ($line =~ /(\^C)/ and not $line =~ /\^C.*\^C/) or $line =~ /banner [a-z\-]+ ((?!\^C).+)/
243 1807 11560 0 $_[0]{$seqn} or $_[0]->endpt->{$seqn}
244 117 28 80 $_[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
403 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