Condition Coverage

script/sdif
Criterion Covered Total %
condition 61 171 35.6


and 2 conditions

line l !l condition
996 0 114 0 $_ = $f->{'MARK'} and print $_
999 0 114 0 $_ = $f->{'MARK'} and print $_

and 3 conditions

line !l l&&!r l&&r condition
261 0 0 0 $app->runin and $app->margin < $app->runin
331 0 0 0 $app->color eq "auto" and -t STDOUT
342 0 0 5 defined $app->cdif and $app->cdif eq ""
379 0 0 0 $OLD && $NEW && !$read_stdin && !grep({/^-[cuCU]/u;} @{$app->diffopts;})
759 1 5 8 @o and $o[0] =~ /^ /u
763 2 4 3 @n and $n[0] =~ /^ /u
767 1 5 2 @o and $o[0] =~ /^\-/u
770 2 3 2 @n and $n[0] =~ /^\+/u
773 1 3 4 @o and $o[0] =~ s/^!/-/u
774 2 2 3 @n and $n[0] =~ s/^!/+/u
819 0 0 26 $old =~ s/^(.)//u && $1
820 0 0 53 $new =~ s/^(.)//u && $1
862 0 0 0 $old =~ s/^(?|(\-).| (\+)|( ) )//u && $1
863 0 0 0 $new =~ s/^(?|.(\-)|(\+) |( ) )//u && $1
864 0 0 0 $mrg =~ s/^(?|(\+).|.(\+)|( ) )//u && $1
949 97 0 0 $mrg and $mrg ne ""

or 2 conditions

line l !l condition
240 0 0 $app->visible->{'ht'} //= 1
373 4 1 shift @ARGV || '-'
446 0 0 $OLD // "undef"
447 0 0 $NEW // "undef"
448 0 0 $DIFF // "undef"
485 0 0 seek OLD, 0, 0 or die
486 0 0 seek NEW, 0, 0 or die
597 5 0 $+{'o'} // 1
5 0 $+{'n'} // 1
631 0 0 $2 // 1
0 0 $4 // 1
0 0 $6 // 1
968 11 6 $opt->{'type'} //= "COMMAND"
970 11 0 $app->command or return
971 6 0 $app->filename or return

or 3 conditions

line l !l&&r !l&&!r condition
265 0 0 0 $app->runin // $app->margin
0 0 0 $app->runout // $app->margin
304 0 5 0 $colormap{'UMARK'} || $colormap{'OMARK'}
0 5 0 $colormap{'OUMARK'} ||= $colormap{'UMARK'} || $colormap{'OMARK'}
305 0 5 0 $colormap{'UMARK'} || $colormap{'NMARK'}
0 5 0 $colormap{'NUMARK'} ||= $colormap{'UMARK'} || $colormap{'NMARK'}
306 0 5 0 $colormap{'ULINE'} || $colormap{'OLINE'}
0 5 0 $colormap{'OULINE'} ||= $colormap{'ULINE'} || $colormap{'OLINE'}
307 0 5 0 $colormap{'ULINE'} || $colormap{'NLINE'}
0 5 0 $colormap{'NULINE'} ||= $colormap{'ULINE'} || $colormap{'NLINE'}
331 5 0 0 $app->color eq "always" or $app->color eq "auto" and -t STDOUT
403 4 1 0 $app->width || &terminal_width
408 110 4 0 $column_width{$screen_width * 1000 + $column} //= do { use integer; my $w = $screen_width; $w -= $column if $app->mark; &max(1, $w / $column) }
430 0 0 0 {"O", 1, "N", 2, "M", 3}->{$_} // $_
509 0 5 0 $app->debug or $read_stdin
512 1 3 1 $ctrl eq "d" or $ctrl eq "c"
519 1 3 1 $ctrl eq "a" or $ctrl eq "c"
562 0 1 0 @old == 0 or $cline != 0
1 0 0 @old == 0 or $cline != 0 or $oline - $dline != $nline
645 0 0 0 pop @old // do { flush_unknown($c1, @old); last }
651 0 0 0 pop @new // do { flush_unknown($c1, @old, $c2, @new); last }
659 0 0 0 defined $mrg or $app->parallel > 2
700 0 0 0 pop @old // do { flush_unknown($c1, @old); last }
711 0 0 0 pop @new // do { flush_unknown($c1, @old, $c2, $c3, @new); last }
755 6 0 1 @o or @n
816 26 39 26 @$o or @$n
880 0 0 0 defined $old or defined $new
949 0 0 97 $old ne "" or $new ne ""
0 0 97 $old ne "" or $new ne "" or $mrg and $mrg ne ""