Condition Coverage

blib/lib/Net/API/Telegram/Generic.pm
Criterion Covered Total %
condition 0 32 0.0


and 3 conditions

line !l l&&!r l&&r condition
189 0 0 0 not $opts->{'ext'} and length $mime
239 0 0 0 exists $self->{$name} and builtin::blessed($self->{$name})

or 2 conditions

line l !l condition
60 0 0 ref $self || (return $self->error(qq[This method "as_hash" must be called with an object, not using class "$self".]))
142 0 0 'IO::File'->new(">$file") || die("Unable to create file '${file}': $!\n")
161 0 0 shift @_ || (return $self->error('No file id was provided'))
166 0 0 $self->_parent->getFile({'file_id', $id}) || (return $self->error("Unable to get file information object for file id ${id}: ", $parent->error->message))
279 0 0 shift @_ || (return $self->error('No object type was provided'))
454 0 0 $ref->{'object'} || (return $self->error('No object type could be found in hash: ', sub {
473 0 0 &$process($data) || (return $self->error('Unable to create object: ', $self->error))

or 3 conditions

line l !l&&r !l&&!r condition
48 0 0 0 $init->{'_parent'} || warn("Property '_parent' is not provided in the init hash!\n")
49 0 0 0 $init->{'_field'} || warn("Property '_field' is not provided in the init hash!\n")
61 0 0 0 shift @_ || '_as_hash_anti_loop_' . time
316 0 0 0 ref $_[0] eq "HASH" or builtin::blessed($_[0])