Branch Coverage

lib/APISchema/Generator/Markdown/Formatter.pm
Criterion Covered Total %
branch 36 48 75.0


line true false branch
25 57 18 ref $def ? :
26 21 54 if ($ref)
30 21 0 if $name
35 51 3 if ($type)
36 51 0 unless ref $type
37 0 0 if ref $type eq 'ARRAY'
40 3 0 if $def->{'enum'}
47 1 53 if (ref $x eq 'SCALAR') { }
24 29 elsif (ref $x) { }
48 1 0 if ($$x eq 1) { }
0 0 elsif ($$x eq 0) { }
65 16 2 if (ref $x) { }
76 8 63 unless defined $text
77 0 63 if ($text =~ /[`|]/u)
86 54 32 unless defined $text
92 27 48 ref $obj ? :
98 0 39 unless ref $def eq 'HASH'
102 303 9 unless defined $def->{$r}
104 9 0 if (ref $def->{$r}) { }
116 0 39 if length $text > 100
123 1 8 if (ref $method || '') eq 'ARRAY'
129 2 16 if (ref $method || '') eq 'ARRAY'
136 15 15 unless length $type
142 8 11 unless $code