Branch Coverage

blib/lib/Rarbg/torrentapi.pm
Criterion Covered Total %
branch 10 14 71.4


line true false branch
97 1 0 if ($res_json->is_success) { }
114 2 0 if $self->_last_request != -1 and time - $self->_last_request < $REQUEST_LIMIT
115 0 2 unless ($self->_token_valid)
122 10 24 if $attribute =~ /^_/
123 9 15 if ($self->$attribute)
131 2 0 if ($res_json->is_success) { }
134 1 1 if ($tresults->{'torrent_results'} and scalar @{$tresults->{'torrent_results'};}) { }