Branch Coverage

blib/lib/Elasticsearch/Serializer/JSON.pm
Criterion Covered Total %
branch 18 18 100.0


line true false branch
21 18 36 unless (ref $var)
22 2 16 &is_utf8($var) ? :
34 6 6 unless (ref $var)
35 1 5 &is_utf8($var) ? :
41 2 4 unless ref $var eq 'ARRAY'
45 4 2 ref $_ ? :
77 60 151 unless defined $json
79 1 117 &is_utf8($json) ? :
118 33 unless substr($json, 0, 1) =~ /^[\[{]/