Branch Coverage

blib/lib/OpenAPI/Generator/From/Pod.pm
Criterion Covered Total %
branch 26 30 86.6


line true false branch
31 1 2 unless @defs
43 2 3 unless ($openapi_node)
57 6 30 unless ref $node eq 'ARRAY'
58 15 15 unless $node->[0] eq 'item-text'
63 0 15 if (not $definition_node or $definition_node->[0] ne 'Verbatim')
68 3 12 if ($item_name =~ /^\s*SCHEMA/u) { }
3 9 elsif ($item_name =~ /^\s*PARAM/u) { }
3 6 elsif ($item_name =~ /^\s*SECURITY/u) { }
105 10 9 unless ref $node eq 'ARRAY'
106 3 6 if ($node->[2] eq 'OPENAPI')
108 0 3 unless ($openapi_node)
119 0 3 unless -f $_[1] or -d $_[1]
120 0 3 unless -r $_[1]
125 2 1 if -f $_[1]
128 3 1 if /\.(pm|pl|t|pod)$/u