Branch Coverage

blib/lib/Dancer2/Serializer/JSON.pm
Criterion Covered Total %
branch 17 24 70.8


line true false branch
63 2 0 if $HAS_UNICODE_UTF8
69 0 0 if $HAS_UNICODE_UTF8
76 1 199 unless defined $entity
77 121 78 unless ref $entity
79 15 63 if (is_arrayref($entity))
86 63 0 if (is_hashref($entity))
93 0 92 if ($decoded_key ne $key) { }
109 8 206 if utf8::is_utf8($value)
110 204 2 unless $value =~ /[\x80-\xFF]/
111 0 2 if _valid_utf8($value)
121 1 1 if $strict_utf8
124 1 0 if (builtin::blessed($self)) { }