Branch Coverage

blib/lib/Spreadsheet/Compare/Single.pm
Criterion Covered Total %
branch 112 182 61.5


line true false branch
52 0 18 unless ref(my $ignore = $self->ignore) eq 'ARRAY'
54 0 18 unless ref(my $diffr = $self->diff_relative) eq 'ARRAY'
75 0 18 unless $readers and ref $readers eq 'ARRAY'
78 0 36 unless ref $r and $r->isa('Spreadsheet::Compare::Reader')
82 0 18 if $debug
83 0 18 if $debug
89 25 0 defined $h2i->{$_} ? :
98 0 18 if $trace
99 0 18 if $trace
102 0 18 if $self->report_all_data
115 2 16 $self->is_sorted ? :
139 17 62 if $readers->[0]->exhausted and $readers->[1]->exhausted
144 0 79 if $trace
147 0 79 if $trace
149 79 0 @$list_l ? :
150 79 0 @$list_r ? :
152 79 0 unless ($self->allow_duplicates)
175 0 79 if $debug
182 0 79 if $debug
185 43 4737 if $count{'left'} % $self->fetch_size == 0
189 0 4780 if $debug
190 0 4780 if $self->report_all_data
195 9 898 if ($self->is_sorted and not $last_pass and $id eq $last_id_l || $id eq $last_id_r)
201 0 9 if $debug
203 9 0 unless ($self->allow_duplicates)
215 0 4771 unless ($cor)
217 0 0 if $debug
222 0 0 if $self->report_all_data
234 0 4771 if $debug
238 0 4771 if $self->report_all_data
244 2087 2684 if ($diff->{'equal'} or $diff->{'limit'} and $self->below_limit_is_equal)
249 0 2087 if $debug
254 0 2684 if $debug
257 2235 449 if $diff->{'limit'}
260 1477 180907 if $diff_rec->limit_mask->[$i] > 0
267 0 2684 if $self->report_diff_row
274 0 79 if $debug
277 4771 9 $self->{'_matched_right'}{$_} ? :
279 0 79 if $debug
288 9 0 if (not $last_pass and $id eq $last_id_l || $id eq $last_id_r)
293 0 9 if $debug
295 9 0 unless ($self->allow_duplicates)
301 0 0 if $debug
305 0 0 if ($self->report_all_data)
330 0 18 if $debug
340 0 158 if $debug
348 0 9560 if $trace
349 36 9524 if ($self->{'_dup_seen'}{$side}{$id})
350 0 36 if $debug
359 158 102909 if $self->{'_dup_seen'}{$side}{$id} > 1
405 0 4786 if $trace
406 0 4786 if $trace
408 474 4312 if ($l->hash eq $r->hash)
409 0 474 if $debug
423 14220 257589 if ($self->{'_look'}{'ign'}{$idx})
431 0 257589 if ($self->{'convert_numbers'})
434 0 0 if $debug
439 246227 11362 if ($lorig eq $rorig)
440 0 246227 if $debug
446 0 11362 if ($self->ignore_strings and not $lorig =~ /$rxreal/u and not $rorig =~ /$rxreal/u) { }
208 11154 elsif (not $lorig =~ /$rxreal/u && $rorig =~ /$rxreal/u) { }
447 0 0 if $debug
452 0 208 if $debug
464 3893 7261 if ($lval == $rval)
465 0 3893 if $debug
470 0 7261 if $debug
482 7261 0 if ($limit_abs ne 'none')
484 5968 1293 if ($diff <= $limit_abs)
485 0 5968 if $debug
488 3463 3798 if ($diff > $diff{'ABS_VALUE'})
494 45 7216 $rval == 0 || $lval == 0 ? :
499 0 7261 if $self->{'diff_relative'}{$key}
501 7261 0 if ($limit_rel ne 'none')
503 6706 555 if ($rdiff <= $limit_rel)
504 0 6706 if $debug
507 4432 2829 if ($rdiff > $diff{'REL_VALUE'})
513 5956 1305 if ($check and $below == $check)
514 0 5956 if $debug
550 2087 2699 if ($diff->{'equal'} or $diff->{'limit'} and $self->below_limit_is_equal) { }
551 0 2087 if $debug
560 0 4771 unless @found
562 0 0 unless $Spreadsheet::Compare::Single::a->{'below'} <=> $Spreadsheet::Compare::Single::b->{'below'}
582 4 14 ref $labs ? :
587 4 14 ref $lrel ? :
589 14 4 if ref $labs ne 'HASH'
590 14 4 if ref $lrel ne 'HASH'
596 0 18 if $debug
597 0 18 if $debug
612 0 22308 unless $force or $string =~ /^$rir$/u
615 24 22284 if $dgs
616 24 22284 if $ds and $ds ne '\\.'