Branch Coverage

blib/lib/Bio/ConnectDots/Parser.pm
Criterion Covered Total %
branch 95 190 50.0


line true false branch
24 0 2 unless $constraint
30 1 0 if (@$constraints) { }
31 0 1 $want_tree ? :
35 0 1 wantarray ? :
48 0 4 unless $term
51 0 4 if $op =~ /exists/i
52 4 0 if ($op)
54 4 0 if ($constant)
60 0 0 unless $constant
64 0 4 if $want_tree
65 2 2 wantarray ? :
66 0 0 wantarray ? :
80 0 2 unless $join
86 1 0 if (@$joins) { }
87 0 1 $want_tree ? :
91 0 1 wantarray ? :
99 0 4 unless $term0
102 0 4 unless $term1
106 0 4 if $want_tree
107 2 2 wantarray ? :
108 0 0 wantarray ? :
122 0 2 unless $alias
128 1 0 if (@$aliases) { }
129 0 1 $want_tree ? :
133 0 1 wantarray ? :
142 0 4 unless $target_name
145 0 4 unless $alias_name
149 0 4 if $want_tree
150 2 2 wantarray ? :
151 0 0 wantarray ? :
163 0 28 unless $term1
165 15 13 unless $rest =~ s/^\s*\.\s*//s
169 15 0 if (@$term) { }
170 0 15 $want_tree ? :
174 12 3 wantarray ? :
184 1 36 if (($match, $rest) = $text =~ /^(\*)(.*)/s) { }
1 35 elsif (($match, $rest, $prefix, $skip, $skip, $body) = extract_quotelike($text), $match) { }
1 34 elsif (($match, $rest, $prefix) = extract_bracketed($text, '[(q'), $match) { }
33 1 elsif (($match, $rest) = $text =~ /^(\w+)(.*)/s) { }
196 36 1 if ($match) { }
197 1 35 if defined $body
198 7 29 $want_tree ? :
202 33 4 wantarray ? :
210 1 4 unless $term1
216 1 0 if (@$term) { }
217 1 0 $want_tree ? :
221 0 1 wantarray ? :
231 0 0 unless $term1
236 0 0 if (@$term) { }
237 0 0 $want_tree ? :
241 0 0 wantarray ? :
249 0 0 if (($match, $rest) = $text =~ /^(\*)(.*)/s) { }
0 0 elsif (($match, $rest, $prefix) = extract_bracketed($text, '[(q'), $match) { }
0 0 elsif (($match, $rest) = $text =~ /^(.*?)\.(.*)/s) { }
264 0 0 if ($match) { }
265 0 0 $want_tree ? :
269 0 0 wantarray ? :
277 0 6 if $match =~ /NOT\s*IN/
278 0 6 if $match eq '=='
280 6 0 if ($match) { }
281 0 6 $want_tree ? :
285 4 2 wantarray ? :
296 0 8 if (($match, $rest, $prefix, $skip, $skip, $body) = extract_quotelike($text), $match) { }
1 7 elsif (($match, $rest, $prefix) = extract_bracketed($text, '[(q'), $match) { }
7 0 elsif (($match, $rest) = $text =~ /^([\w\.]+)\W*(.*)/s) { }
306 8 0 if ($match) { }
307 0 8 if defined $body
308 0 8 $want_tree ? :
312 6 2 wantarray ? :
320 0 2 unless $constant1
325 1 0 if (@$constants) { }
326 0 1 $want_tree ? :
330 0 1 wantarray ? :
336 0 0 if (($match, $rest, $prefix) = extract_bracketed($text, '[(q'), $match) { }
346 0 0 if ($match) { }
347 0 0 $want_tree ? :
351 0 0 wantarray ? :
364 0 0 unless $output
370 0 0 if (@$outputs) { }
371 0 0 $want_tree ? :
375 0 0 wantarray ? :
386 0 4 unless $output1
388 2 2 unless $rest =~ s/^\s*\.\s*//s
391 0 2 unless @$output
392 1 1 if ($rest =~ s/^\W*AS\W*//is)
395 0 1 unless $output_name
399 0 2 if $want_tree
400 0 2 wantarray ? :
401 0 0 wantarray ? :
413 2 13 if (($match, $rest, $prefix, $skip, $skip, $body) = extract_quotelike($text), $match) { }
13 0 elsif (($match, $rest) = $text =~ /^(\w+)(.*)/s) { }
419 15 0 if ($match) { }
420 2 13 if defined $body
421 2 13 $want_tree ? :
425 13 2 wantarray ? :