Branch Coverage

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


line true false branch
39 0 0 if (&Scalar::Util::blessed($init)) { }
41 0 0 if ($init->isa('Net::API::Telegram'))
67 0 0 if (&Scalar::Util::blessed($this)) { }
0 0 elsif (ref $this eq 'ARRAY') { }
0 0 elsif (ref $this eq 'HASH') { }
72 0 0 if ($this->can('as_hash')) { }
0 0 elsif (overload::Overloaded($this)) { }
0 0 elsif ($this->can('as_string')) { }
77 0 0 if length $h
100 0 0 if length $v
108 0 0 if exists $this->{$anti_loop}
126 0 0 if exists $self->{$anti_loop}
128 0 0 if (defined &{"${class}::$k";})
131 0 0 if ($self->_is_boolean($k)) { }
133 0 0 $self->{$k} ? :
166 0 0 $self->can('as_string') ? :
174 0 0 if ref $_[0] eq 'HASH'
187 0 0 if $opts->{'ext'}
192 0 0 unless ($self->is_success)
196 0 0 if ($len != -s $filepath)
201 0 0 if (not $opts->{'ext'} and length $mime)
203 0 0 if ($mime =~ m[/([^/]+)$])
251 0 0 if exists $self->{$name} and &Scalar::Util::blessed($self->{$name})
262 0 0 if $self->{'_dbh'}
267 0 0 unless defined *{"${class}::";}
270 0 0 if $@
271 0 0 @_ ? :
272 0 0 unless defined $o
275 0 0 if ($TryCatch::Error)
294 0 0 unless exists $ref->{$type}
315 0 0 if (@_)
327 0 0 if (@_)
329 0 0 if (ref $_[0] eq 'HASH' or &Scalar::Util::blessed($_[0])) { }
346 0 0 if (@_)
349 0 0 if ref $this ne 'ARRAY'
353 0 0 if ref $ref ne 'ARRAY'
358 0 0 if (defined $ref->[$i]) { }
360 0 0 unless ref $ref->[$i]
361 0 0 if (&Scalar::Util::blessed($ref->[$i])) { }
0 0 elsif (ref $ref->[$i] eq 'HASH') { }
364 0 0 if ($pack) { }
368 0 0 if $self->{'_dbh'}
389 0 0 unless defined $o
404 0 0 if (@_)
407 0 0 if ref $ref ne 'ARRAY'
417 0 0 if (defined $ref->[$i]) { }
419 0 0 unless ref $ref->[$i]
420 0 0 if (&Scalar::Util::blessed($ref->[$i])) { }
0 0 elsif (ref $ref->[$i] eq 'HASH') { }
423 0 0 if ($pack) { }
427 0 0 if $self->{'_dbh'}
449 0 0 unless defined $o
463 0 0 if (@_)
477 0 0 if (ref $_[0] eq 'HASH') { }
0 0 elsif (ref $_[0] eq 'ARRAY') { }