Branch Coverage

blib/lib/Data/Prepare.pm
Criterion Covered Total %
branch 38 46 82.6


line true false branch
40 4 6 if (($spec->{'tospec'} || '') =~ /^index:(\d+)/)
46 26 50 if defined $matchto and not $to_row->[$i] =~ /$matchto/
47 2 48 if defined $matchfrom and not $from_row->[$i] =~ /$matchfrom/
48 2 22 $justone ? :
2 24 $fromspec =~ /^literal:(.*)/ ? :
11 26 $fromspec eq 'left' ? :
11 37 $fromspec eq 'lastnonblank' ? :
53 4 44 $justone ? :
54 0 0 $do->[0] eq 'append' ? :
35 0 $do->[0] eq 'prepend' ? :
13 35 $do->[0] eq 'overwrite' ? :
59 4 44 if ($justone) { }
73 0 1 unless defined $key_index
79 176 20 if defined $pkv or not $fb
112 0 1 if @invalid
117 1 249 unless length(my $pk_val = $row->[$pk_colnum])
119 107 1387 unless length(my $alt_v = $$row[$k2i->{$alt_k}])
138 14 182 unless $exact_match
152 409 449 if length($pk_val2from->{$this_pk_val} || '') < length $_
160 0 325 /[A-Z]{2,}/ ? :
168 12 204 if ((my(@abbrev_parts) = grep(length($_), split(/\s*[\(,]\s*/, $value, 0))) > 1)
179 0 216 unless (keys %pk_col2pk_value2count)
191 0 29 unless $pk_val2count{$b} <=> $pk_val2count{$a} or length $pk_val2from{$a} <=> length $pk_val2from{$b}