Branch Coverage

blib/lib/WWW/GoDaddy/REST/Resource.pm
Criterion Covered Total %
branch 44 50 88.0


line true false branch
51 1 1 unless ($link_url)
66 2 3 unless ($action_url)
67 2 0 if ($self->id)
72 1 1 if (exists $$resource_actions{$action})
78 1 1 unless ($action_url)
115 4 1 unless $self->resource_type
134 79 4 if (exists $$links{$name})
149 3 2 if (exists $$actions{$name})
171 4 3 if ($field eq 'data') { }
183 6 1 if ($type_schema)
184 1 5 if ($container and $container eq 'map') { }
4 1 elsif ($container and $container eq 'array') { }
1 0 elsif (ref $raw_data eq 'HASH') { }
214 346 5 if (@_ <= 1) { }
230 0 5 if ($http_resp and $http_resp->header('X-API-Schemas'))
241 8 338 unless (exists $self->fields->{$name})
263 94 4 if (ref $data eq 'HASH') { }
265 94 0 $type_short ? :
291 1 34 unless $self->fields
292 31 4 if (%fields) { }
3 1 elsif ($self->http_response) { }
297 3 0 is_json($content) ? :
307 0 28 if ($pretty)
323 63 131 if (exists $SCHEMA_TO_IMPL{$_})
333 1 2 if (@_ % 2 != 0)