Branch Coverage

blib/lib/RT/Client/REST/Forms.pm
Criterion Covered Total %
branch 23 64 35.9


line true false branch
28 0 0 if ($elt =~ /^(\d+)-(\d+)$/) { }
48 0 96 if $line eq "\n"
50 0 96 if ($line eq "--\n")
53 0 0 if ($e or $c or @$o)
61 96 0 if ($state != -1) { }
63 0 96 if ($state == 0 and $line =~ /^#/)
74 96 0 if ($state <= 1 and $line =~ /^($field: )(.*)?$/s)
90 8 88 if ($f eq 'Content') { }
98 96 0 unless exists $k->{$f}
106 0 0 unless ($line =~ /^#/)
111 0 0 $line =~ /^>>/ ? :
123 8 0 if $e or $c or @$o
126 0 96 if ref $k->{$l} eq "ARRAY"
141 0 6 if ($c)
145 0 6 if ($e) { }
6 0 elsif ($o) { }
155 0 10 ref $k->{$key} eq 'ARRAY' ? :
158 0 10 if length $sp > 16
161 0 10 if ($v =~ /\n/) { }
0 10 elsif ($line and length($line) + length($v) - rindex($line, "\n") >= 70) { }
165 0 0 if ($line) { }
0 0 elsif (@lines and not $lines[-1] =~ /\n\n$/) { }
180 0 10 $line ? :
184 0 10 unless @values
185 10 0 if ($line)
186 0 10 if ($line =~ /\n/)
187 0 0 if (@lines and not $lines[-1] =~ /\n\n$/)
210 0 96 ref $val eq 'ARRAY' ? :
212 0 96 if (exists $hash->{$key}) { }
213 0 0 unless (ref $hash->{$key} eq "ARRAY")
214 0 0 $hash->{$key} ne '' ? :
229 0 0 ref $val eq 'ARRAY' ? :