Branch Coverage

lib/APISchema/Generator/Markdown/ExampleFormatter.pm
Criterion Covered Total %
branch 13 28 46.4


line true false branch
23 18 0 unless my $header = $self->spec->{'header'}
24 0 0 unless my $resource = $header->definition
27 0 0 unless defined $example
28 0 0 unless ref $example eq 'HASH'
29 0 0 unless scalar keys %$example
38 6 3 unless my $parameter = $self->spec->{'parameter'}
39 0 3 unless my $resource = $parameter->definition
42 0 3 unless defined $example
43 0 3 unless ref $example eq 'HASH'
44 0 3 unless scalar keys %$example
54 4 14 unless my $body = $self->spec->{'body'}
55 0 14 unless my $resource = $body->definition
58 0 14 unless defined $example
60 13 1 ref $example ? :