Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
198 0 0 0 not $opts->{'ext'} and length $mime
248 0 0 0 exists $self->{$name} and &Scalar::Util::blessed($self->{$name})
275 0 0 0 ref $Nice::Try::RETVAL[0] && $Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')
0 0 0 defined $Nice::Try::WANTARRAY and not ref $Nice::Try::RETVAL[0] && $Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')

or 2 conditions

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

or 3 conditions

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