Branch Coverage

blib/lib/MooX/Role/JSON_LD.pm
Criterion Covered Total %
branch 13 16 81.2


line true false branch
183 3 73 if (&is_ArrayRef($val))
185 6 0 &is_Object($_) && $_->can('json_ld_data') ? :
191 4 69 &is_Object($val) && $val->can('json_ld_data') ? :
206 56 16 if (&is_Ref($field)) { }
208 56 0 if (&is_HashRef($field)) { }
221 16 48 &is_CodeRef($val) ? :
60 4 if (defined(my $res = &is_CodeRef($val) ? &$val($self) : $self->$val))
236 16 0 if (defined(my $res = $self->$field))