Branch Coverage

blib/lib/OpenSearch/Client/Role/Serializer/JSON.pm
Criterion Covered Total %
branch 18 18 100.0


line true false branch
42 42 48 unless (ref $var)
43 6 36 &is_utf8($var) ? :
55 18 16 unless (ref $var)
56 3 15 &is_utf8($var) ? :
62 6 10 unless ref $var eq "ARRAY"
66 10 6 ref $_ ? :
98 62 156 unless defined $json
100 2 120 &is_utf8($json) ? :
122 34 unless substr($json, 0, 1) =~ /^[\[{]/