Branch Coverage

blib/lib/Net/API/Telegram/Generic.pm
Criterion Covered Total %
branch 0 126 0.0


line true false branch
36 0 0 if (&Scalar::Util::blessed($init)) { }
38 0 0 if ($init->isa('Net::API::Telegram'))
64 0 0 if (&Scalar::Util::blessed($this)) { }
0 0 elsif (ref $this eq 'ARRAY') { }
0 0 elsif (ref $this eq 'HASH') { }
69 0 0 if ($this->can('as_hash')) { }
0 0 elsif (overload::Overloaded($this)) { }
0 0 elsif ($this->can('as_string')) { }
74 0 0 if length $h
97 0 0 if length $v
105 0 0 if exists $this->{$anti_loop}
123 0 0 if exists $self->{$anti_loop}
125 0 0 if (defined &{"${class}::$k";})
128 0 0 if ($self->_is_boolean($k)) { }
130 0 0 $self->{$k} ? :
163 0 0 $self->can('as_string') ? :
171 0 0 if ref $_[0] eq 'HASH'
184 0 0 if $opts->{'ext'}
189 0 0 unless ($self->is_success)
193 0 0 if ($len != -s $filepath)
198 0 0 if (not $opts->{'ext'} and length $mime)
200 0 0 if ($mime =~ m[/([^/]+)$])
248 0 0 if exists $self->{$name} and &Scalar::Util::blessed($self->{$name})
259 0 0 if $self->{'_dbh'}
264 0 0 unless defined *{"${class}::";}
267 0 0 if $@
268 0 0 @_ ? :
269 0 0 unless defined $o
271 0 0 if ($Nice::Try::WANTARRAY) { }
0 0 elsif (defined $Nice::Try::WANTARRAY) { }
0 0 length $@ ? :
0 0 if ($Nice::Try::HAS_CATCH)
0 0 if ($Nice::Try::DIED)
275 0 0 if ($Nice::Try::WANTARRAY) { }
0 0 elsif (defined $Nice::Try::WANTARRAY) { }
0 0 $Nice::Try::WANTARRAY ? :
0 0 if (defined $Nice::Try::WANTARRAY and not ref $Nice::Try::RETVAL[0] && $Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL'))
292 0 0 unless exists $ref->{$type}
313 0 0 if (@_)
325 0 0 if (@_)
327 0 0 if (ref $_[0] eq 'HASH' or &Scalar::Util::blessed($_[0])) { }
344 0 0 if (@_)
347 0 0 if ref $this ne 'ARRAY'
351 0 0 if ref $ref ne 'ARRAY'
356 0 0 if (defined $ref->[$i]) { }
358 0 0 unless ref $ref->[$i]
359 0 0 if (&Scalar::Util::blessed($ref->[$i])) { }
0 0 elsif (ref $ref->[$i] eq 'HASH') { }
362 0 0 if ($pack) { }
366 0 0 if $self->{'_dbh'}
387 0 0 unless defined $o
402 0 0 if (@_)
405 0 0 if ref $ref ne 'ARRAY'
415 0 0 if (defined $ref->[$i]) { }
417 0 0 unless ref $ref->[$i]
418 0 0 if (&Scalar::Util::blessed($ref->[$i])) { }
0 0 elsif (ref $ref->[$i] eq 'HASH') { }
421 0 0 if ($pack) { }
425 0 0 if $self->{'_dbh'}
447 0 0 unless defined $o
461 0 0 if (@_)
475 0 0 if (ref $_[0] eq 'HASH') { }
0 0 elsif (ref $_[0] eq 'ARRAY') { }