Condition Coverage

blib/lib/Bot/Telegram.pm
Criterion Covered Total %
condition 26 31 83.8


and 2 conditions

line l !l condition
181 15 15 exists $update->{$_} and return $_

and 3 conditions

line !l l&&!r l&&r condition
105 1 1 2 !$tx->error && ref $response && $response->{'ok'}
246 0 4 18 $agent->isa("Mojo::UserAgent") and $self->is_async

or 2 conditions

line l !l condition
35 3 1 sub { return $tx->{'error'}{'msg'} unless $self->is_async; foreach $_ ($type) { return $tx->error->{'message'} if /agent/u; return +($tx->res->json // {})->{'description'} if /api/u; } ; } ->() || 'no details available'
76 0 1 $args{'async'} //= 1
217 1 1 $config->{'offset'} //= 0
230 9 16 $config // {"timeout", 20, "offset", 0}
232 5 20 $opts{'interval'} // "0.3"
281 18 3 $tx->res->json // {}
285 6 3 eval { do { return "api" if $response->{'error_code'}; return "agent" if $tx->error } } // "unknown"

or 3 conditions

line l !l&&r !l&&!r condition
284 3 6 12 $tx->error || !$response->{'ok'}
330 1 18 0 $retry_after // $self->_polling_interval
334 0 4 0 $retry_after // $self->_polling_interval