Branch Coverage

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


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