Branch Coverage

blib/lib/DAIA/Object.pm
Criterion Covered Total %
branch 0 164 0.0


line true false branch
23 0 0 if (@_ == 1 and ref $_[0] eq 'HASH') { }
0 0 elsif (@_ == 1 and ref $_[0] eq $class) { }
32 0 0 if ($class eq 'DAIA::Availability')
33 0 0 unless exists $hash{'status'}
41 0 0 unless exists $hash{$_}
45 0 0 if %hidden
50 0 0 unless exists $hash{$property}
68 0 0 unless defined $value
72 0 0 unless ref($value) =~ /^DAIA::([A-Z][a-z]+)$/
80 0 0 if (ref $$self{$property} eq 'ARRAY') { }
95 0 0 unless (reftype $pi || '') eq 'ARRAY'
97 0 0 if $param{'xslt'}
99 0 0 $_ =~ /^<\?.*\?>$/ ? :
103 0 0 if $name eq 'response'
106 0 0 if $xmlns
108 0 0 if $xmlns
111 0 0 if $param{'header'}
121 0 0 unless $property =~ /^[a-z]+$/
122 0 0 if (ref $$self{$property} eq 'ARRAY') { }
0 0 elsif (UNIVERSAL::isa($$self{$property}, 'DAIA::Object')) { }
0 0 elsif (UNIVERSAL::isa($$self{$property}, 'JSON::Boolean') and not $json) { }
0 0 elsif ($property eq 'label' and $$self{$property} eq '') { }
127 0 0 $$self{$property} ? :
143 0 0 if @_ < 2 and $$self{'_hidden'} and exists $$self{'_hidden'}{'callback'}
146 0 0 if (defined $callback and $callback =~ /^[a-z][a-z0-9._\[\]]*$/i) { }
161 0 0 unless $format and grep {$_ eq $format;} 'DAIA'->formats
165 0 0 if ($format eq 'xml') { }
0 0 elsif ($format eq 'json') { }
0 0 elsif ($format eq 'rdfjson') { }
0 0 elsif ($DAIA::TRINE_SERIALIZER) { }
174 0 0 if $DAIA::RDF_NS and $format ne 'rdfxml'
176 0 0 if ($DAIA::GRAPHVIZ and $DAIA::TRINE_MODEL and $format =~ /^(dot|svg)$/) { }
181 0 0 if ($ser)
195 0 0 if $$self{'id'}
207 0 0 unless my $class = ref $self
211 0 0 if $method eq 'DESTROY'
214 0 0 if $property =~ /^(add|provide)([A-Z][a-z]+)$/
219 0 0 unless exists $$PROPERTIES{$property}
226 0 0 if ($method =~ /^add/) { }
0 0 elsif ($method =~ /^provide/) { }
227 0 0 unless $$opt{'repeatable'} and $$opt{'type'}
230 0 0 unless (UNIVERSAL::isa($_[0], $$opt{'type'}))
232 0 0 if $@
236 0 0 if (defined $$self{$property}) { }
238 0 0 unless $$self{$property}
0 0 $$opt{'repeatable'} ? :
245 0 0 unless $$self{$property}
0 0 $$opt{'repeatable'} ? :
0 0 if @_ == 0
251 0 0 if (not defined $value or ref $value eq 'ARRAY' and @{$value;} == 0)
252 0 0 if (exists $$opt{'default'})
253 0 0 ref $$opt{'default'} eq 'CODE' ? :
256 0 0 if (defined $value) { }
259 0 0 if exists $$self{$property}
264 0 0 if ($$opt{'type'}) { }
270 0 0 if (ref $_[0] eq 'ARRAY') { }
0 0 elsif (UNIVERSAL::isa($_[0], $$opt{'type'})) { }
271 0 0 if @_ > 1
280 0 0 if @args > 1 and not $$opt{'repeatable'}
285 0 0 if (ref $_ eq 'ARRAY') { }
0 0 elsif (UNIVERSAL::isa($_, $$opt{'type'})) { }
287 0 0 if $@
292 0 0 if $@
297 0 0 $$opt{'repeatable'} ? :
301 0 0 if ($$opt{'fixed'}) { }
0 0 elsif ($$opt{'filter'}) { }
305 0 0 unless defined $value
325 0 0 if (defined $$struct{'content'})
330 0 0 if not ref $$struct{$_}
332 0 0 if @attr
339 0 0 if ref $$struct{$_}
342 0 0 if (@children) { }
346 0 0 if ($k eq 'label') { }
0 0 elsif (ref $$struct{$k} eq 'HASH') { }
0 0 elsif (ref $$struct{$k} eq 'ARRAY') { }
358 0 0 if ($content ne '') { }
371 0 0 unless defined $data
382 0 0 if @_ % 2
389 0 0 unless $$self{'_hidden'}
393 0 0 if exists $$hashref{$_} or not exists $$self{'_hidden'}{$_}
401 0 0 unless eval { do { can($fh, 'binmode') } }
403 0 0 if $layer =~ /^encoding|^utf8/