Condition Coverage

blib/lib/DataStore/CAS/FS/DirCodec/Universal.pm
Criterion Covered Total %
condition 14 26 53.8


and 3 conditions

line !l l&&!r l&&r condition
83 0 0 50 defined $data->{'metadata'} and ref $data->{'metadata'} eq 'HASH'
85 0 0 50 defined $data->{'entries'} and ref $data->{'entries'} eq 'ARRAY'

or 2 conditions

line l !l condition
47 25 0 $metadata || {}

or 3 conditions

line l !l&&r !l&&!r condition
31 30 0 0 ref $metadata eq 'HASH' or croak('Metadata must be a hashref')
41 4 208 3 &utf8::is_utf8($_) || !($_ =~ /[\x80-\xFF]/)
2 0 217 not defined $_ or ref $_ ? ref($_)->can('TO_JSON') : &utf8::is_utf8($_) || !($_ =~ /[\x80-\xFF]/)
214 3 0 not defined $_ or ref $_ ? ref($_)->can('TO_JSON') : &utf8::is_utf8($_) || !($_ =~ /[\x80-\xFF]/) or croak("Can't serialize $entry->{'name'}, all attributes must be unicode string, or have TO_JSON: '${_}'")
45 22 3 0 $_json_coder ||= _build_json_coder()
80 50 0 0 $_json_coder ||= _build_json_coder()