Condition Coverage

script/sdif
Criterion Covered Total %
condition 81 186 43.5


and 2 conditions

line l !l condition
1038 0 162 0 $_ = $f->{'MARK'} and print $_
1041 0 162 0 $_ = $f->{'MARK'} and print $_

and 3 conditions

line !l l&&!r l&&r condition
263 0 0 0 $app->runin and $app->margin < $app->runin
334 5 0 0 $app->color eq "auto" and -t STDOUT
345 5 0 5 defined $app->cdif and $app->cdif eq ""
382 0 0 0 $OLD && $NEW && !$read_stdin && !grep({/^-[cuCU]/u;} @{$app->diffopts;})
762 1 5 8 @o and $o[0] =~ /^ /u
766 2 4 3 @n and $n[0] =~ /^ /u
770 1 5 2 @o and $o[0] =~ /^\-/u
773 2 3 2 @n and $n[0] =~ /^\+/u
776 1 3 4 @o and $o[0] =~ s/^!/-/u
777 2 2 3 @n and $n[0] =~ s/^!/+/u
820 13 6 12 @$o && @$n
825 0 0 46 $old =~ s/^(.)//u && $1
826 0 0 83 $new =~ s/^(.)//u && $1
834 67 20 8 $max and $one_side
87 6 2 $max and $one_side and ++$count >= $max
26 0 2 $max and $one_side and ++$count >= $max and @$o + @$n > 0
891 0 0 0 $old =~ s/^(?|(\-).| (\+)|( ) )//u && $1
892 0 0 0 $new =~ s/^(?|.(\-)|(\+) |( ) )//u && $1
893 0 0 0 $mrg =~ s/^(?|(\+).|.(\+)|( ) )//u && $1
946 190 193 1 defined $_ and length $_ > $max
991 129 0 0 $mrg and $mrg ne ""

or 2 conditions

line l !l condition
242 0 0 $app->visible->{'ht'} //= 1
376 9 1 shift @ARGV || '-'
449 0 0 $OLD // "undef"
450 0 0 $NEW // "undef"
451 0 0 $DIFF // "undef"
488 0 0 seek OLD, 0, 0 or die
489 0 0 seek NEW, 0, 0 or die
600 10 0 $+{'o'} // 1
8 2 $+{'n'} // 1
634 0 0 $2 // 1
0 0 $4 // 1
0 0 $6 // 1
1010 21 6 $opt->{'type'} //= "COMMAND"
1012 16 0 $app->command or return
1013 11 0 $app->filename or return

or 3 conditions

line l !l&&r !l&&!r condition
267 0 0 0 $app->runin // $app->margin
0 0 0 $app->runout // $app->margin
307 0 10 0 $colormap{'UMARK'} || $colormap{'OMARK'}
0 10 0 $colormap{'OUMARK'} ||= $colormap{'UMARK'} || $colormap{'OMARK'}
308 0 10 0 $colormap{'UMARK'} || $colormap{'NMARK'}
0 10 0 $colormap{'NUMARK'} ||= $colormap{'UMARK'} || $colormap{'NMARK'}
309 0 10 0 $colormap{'ULINE'} || $colormap{'OLINE'}
0 10 0 $colormap{'OULINE'} ||= $colormap{'ULINE'} || $colormap{'OLINE'}
310 0 10 0 $colormap{'ULINE'} || $colormap{'NLINE'}
0 10 0 $colormap{'NULINE'} ||= $colormap{'ULINE'} || $colormap{'NLINE'}
334 5 0 5 $app->color eq "always" or $app->color eq "auto" and -t STDOUT
406 9 1 0 $app->width || &terminal_width
411 147 9 0 $column_width{$screen_width * 1000 + $column} //= do { use integer; my $w = $screen_width; $w -= $column if $app->mark; &max(1, $w / $column) }
433 0 0 0 {"O", 1, "N", 2, "M", 3}->{$_} // $_
512 0 5 0 $app->debug or $read_stdin
515 1 3 1 $ctrl eq "d" or $ctrl eq "c"
522 1 3 1 $ctrl eq "a" or $ctrl eq "c"
565 0 1 0 @old == 0 or $cline != 0
1 0 0 @old == 0 or $cline != 0 or $oline - $dline != $nline
648 0 0 0 pop @old // do { flush_unknown($c1, @old); last }
654 0 0 0 pop @new // do { flush_unknown($c1, @old, $c2, @new); last }
662 0 0 0 defined $mrg or $app->parallel > 2
703 0 0 0 pop @old // do { flush_unknown($c1, @old); last }
714 0 0 0 pop @new // do { flush_unknown($c1, @old, $c2, $c3, @new); last }
758 6 0 1 @o or @n
822 46 49 29 @$o or @$n
909 0 0 0 defined $old or defined $new
991 0 6 129 $old ne "" or $new ne ""
6 0 129 $old ne "" or $new ne "" or $mrg and $mrg ne ""