Branch Coverage

blib/lib/DNS/Hetzner/Schema.pm
Criterion Covered Total %
branch 33 36 91.6


line true false branch
27 19 110 $spec->{'param_names'}{$camelized} ? :
34 48 58 if (@errors)
43 78 69 unless $check_params{$param_name}
55 84 22 if $op_data
71 220 440 if 'HASH' ne ref $paths{$path}{$method_name}
74 22 418 if ($method->{'operationId'} and $method->{'operationId'} eq $operation)
80 0 22 unless $op
90 0 23 if $param->{'name'} eq 'Auth-API-Token'
94 11 12 if ($param->{'required'})
103 11 11 if ($op->{'requestBody'})
109 9 2 if ($content_type eq 'application/json') { }
2 0 elsif ($content_type eq 'text/plain') { }
117 7 2 if ($schema->{'$ref'})
151 7 15 if ($spec->{'properties'}{'$ref'})
157 11 7 if ($data->{'properties'})
159 60 22 if $data->{'properties'}{$property}{'readOnly'}
165 11 7 if ($data->{'allOf'})
167 7 4 if ($data->{'required'})