Condition Coverage

blib/lib/Net/API/Telegram/InputFile.pm
Criterion Covered Total %
condition 0 14 0.0


or 2 conditions

line l !l condition
33 0 0 shift @_ || (return $self->error('No file content or file path was provided.'))
67 0 0 $self->_load_file($self->{'file'}) || (return $self->error(qq[Unable to load file "$self->{'file'}": $!]))
104 0 0 shift @_ || (return $self->error('No file path to save as was provided.'))
113 0 0 'IO::File'->new(">$path") || (return $self->error(qq[Unable to open file "$path" in write mode: $!]))

or 3 conditions

line l !l&&r !l&&!r condition
48 0 0 0 $this->{'file'} or CORE::length $this->{'content'}
106 0 0 0 $self->{'file'} or CORE::length $self->{'content'}