Branch Coverage

blib/lib/Search/Elasticsearch/Role/Serializer/JSON.pm
Criterion Covered Total %
branch 13 18 72.2


line true false branch
36 60 57 unless (ref $var)
37 9 51 &is_utf8($var) ? :
49 0 1 unless (ref $var)
50 0 0 &is_utf8($var) ? :
56 0 1 unless ref $var eq "ARRAY"
60 1 0 ref $_ ? :
92 70 184 unless defined $json
94 6 132 &is_utf8($json) ? :
138 46 unless substr($json, 0, 1) =~ /^[\[{]/