Branch Coverage

blib/lib/Telegram/Bot/Object/Base.pm
Criterion Covered Total %
branch 13 26 50.0


line true false branch
15 1 85 if (grep /^$field$/, $self->arrays)
26 0 85 if (grep /^$field$/, $self->array_of_arrays)
48 349 86 unless defined $hash->{$field}
51 72 14 if ($type eq 'scalar') { }
52 0 72 if ($obj->_field_is_array($field)) { }
0 72 elsif ($obj->_field_is_array_of_arrays) { }
57 0 0 if (ref $val eq 'JSON::PP::Boolean')
67 0 72 if (ref $val eq 'JSON::PP::Boolean')
76 1 13 if ($obj->_field_is_array($field)) { }
0 13 elsif ($obj->_field_is_array_of_arrays) { }
105 0 0 if ($type eq 'scalar') { }
110 0 0 if ref $self->$field ne 'ARRAY' and defined $self->$field
114 0 0 if ref $self->$field eq 'ARRAY'