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
201 0 0 0 not $opts->{'ext'} and length $mime
251 0 0 0 exists $self->{$name} and &Scalar::Util::blessed($self->{$name})

or 2 conditions

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

or 3 conditions

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