Branch Coverage

lib/APISchema/Generator/Markdown/Formatter.pm
Criterion Covered Total %
branch 45 54 83.3


line true false branch
27 69 18 if (ref $def)
29 1 204 if (my $union = $def->{$type})
35 68 18 ref $def ? :
36 22 64 if ($ref)
40 22 0 if $name
44 5 59 if $def->{'enum'}
47 58 1 if ($type)
48 57 1 unless ref $type
49 1 0 if ref $type eq 'ARRAY'
57 1 67 if (ref $x eq 'SCALAR') { }
30 37 elsif (ref $x) { }
58 1 0 if ($$x eq 1) { }
0 0 elsif ($$x eq 0) { }
75 17 2 if (ref $x) { }
86 8 72 unless defined $text
87 0 72 if ($text =~ /[`|]/u)
96 1 57 $exists ? :
58 40 unless defined $text
102 28 50 ref $obj ? :
108 0 41 unless ref $def eq 'HASH'
112 318 10 unless defined $def->{$r}
114 10 0 if (ref $def->{$r}) { }
126 0 41 if length $text > 100
133 1 8 if (ref $method || '') eq 'ARRAY'
139 2 16 if (ref $method || '') eq 'ARRAY'
146 15 15 unless length $type
152 8 11 unless $code