Branch Coverage

blib/lib/Telegram/Bot/Object/Base.pm
Criterion Covered Total %
branch 13 36 36.1


line true false branch
15 1 90 if (grep /^$field$/u, $self->arrays)
26 0 90 if (grep /^$field$/u, $self->array_of_arrays)
48 405 91 unless defined $hash->{$field}
50 76 15 if ($type eq 'scalar') { }
51 0 76 if ($obj->_field_is_array($field)) { }
0 76 elsif ($obj->_field_is_array_of_arrays) { }
56 0 0 if (ref $val eq "JSON::PP::Boolean")
66 0 76 if (ref $val eq "JSON::PP::Boolean")
75 1 14 if ($obj->_field_is_array($field)) { }
0 14 elsif ($obj->_field_is_array_of_arrays($field)) { }
106 0 0 if ($type eq 'scalar') { }
109 0 0 if defined $self->$field
113 0 0 if ($self->_field_is_array($field)) { }
0 0 elsif ($self->_field_is_array_of_arrays($field)) { }
117 0 0 unless defined $self->$field
125 0 0 unless defined $self->$field
138 0 0 if (defined $self->$field)
140 0 0 if $hashref