Branch Coverage

blib/lib/ODO/RDFS/Resource.pm
Criterion Covered Total %
branch 12 68 17.6


line true false branch
29 0 40 unless ref $self
38 0 40 if (exists $properties{'comment'} and defined $properties{'comment'})
41 0 0 unless (UNIVERSAL::isa($properties{'comment'}, 'ODO::RDFS::Properties::comment'))
45 0 0 unless ($self->can('properties'))
49 0 0 unless ($self->properties->can('comment'))
58 0 40 if (exists $properties{'label'} and defined $properties{'label'})
61 0 0 unless (UNIVERSAL::isa($properties{'label'}, 'ODO::RDFS::Properties::label'))
65 0 0 unless ($self->can('properties'))
69 0 0 unless ($self->properties->can('label'))
78 0 40 if (exists $properties{'member'} and defined $properties{'member'})
81 0 0 unless (UNIVERSAL::isa($properties{'member'}, 'ODO::RDFS::Properties::member'))
85 0 0 unless ($self->can('properties'))
89 0 0 unless ($self->properties->can('member'))
98 0 40 if (exists $properties{'seeAlso'} and defined $properties{'seeAlso'})
101 0 0 unless (UNIVERSAL::isa($properties{'seeAlso'}, 'ODO::RDFS::Properties::seeAlso'))
105 0 0 unless ($self->can('properties'))
109 0 0 unless ($self->properties->can('seeAlso'))
118 0 40 if (exists $properties{'isDefinedBy'} and defined $properties{'isDefinedBy'})
121 0 0 unless (UNIVERSAL::isa($properties{'isDefinedBy'}, 'ODO::RDFS::Properties::isDefinedBy'))
125 0 0 unless ($self->can('properties'))
129 0 0 unless ($self->properties->can('isDefinedBy'))
138 0 40 if (exists $properties{'type'} and defined $properties{'type'})
141 0 0 unless (UNIVERSAL::isa($properties{'type'}, 'ODO::RDFS::Properties::type'))
145 0 0 unless ($self->can('properties'))
149 0 0 unless ($self->properties->can('type'))
158 0 40 if (exists $properties{'value'} and defined $properties{'value'})
161 0 0 unless (UNIVERSAL::isa($properties{'value'}, 'ODO::RDFS::Properties::value'))
165 0 0 unless ($self->can('properties'))
169 0 0 unless ($self->properties->can('value'))
191 0 0 if UNIVERSAL::isa($self->subject, 'ODO::Node::Literal')
205 11 0 unless UNIVERSAL::can($my_super, '__to_statement_array')
216 11 77 unless $propertyName and $propertyName ne ''
220 77 0 unless $@
226 0 0 if (UNIVERSAL::isa($p_value, 'ODO::Node::Literal')) { }