| blib/lib/Net/Async/WebSearch/Provider/Reddit.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 10 | 38 | 26.3 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 37 | 0 | 0 | 0 | defined $sub && length $sub |
| 46 | 0 | 0 | 0 | defined $sub and length $sub |
| 103 | 7 | 0 | 0 | $d->{'selftext'} && length $d->{'selftext'} |
| line | l | !l | condition |
|---|---|---|---|
| 16 | 13 | 0 | $self->{'endpoint'} ||= "https://www.reddit.com" |
| 18 | 13 | 0 | $self->{'name'} ||= "reddit" |
| 19 | 0 | 13 | $self->{'subreddit'} //= undef |
| 20 | 0 | 13 | $self->{'sort'} ||= "relevance" |
| 21 | 0 | 13 | $self->{'time'} ||= "all" |
| 22 | 13 | 0 | $self->{'link_base'} ||= "https://www.reddit.com" |
| 33 | 0 | 0 | $opts ||= {} |
| 34 | 0 | 0 | $opts->{'limit'} || 10 |
| 74 | 9 | 0 | $data->{'data'} || {} |
| 77 | 7 | 0 | $d->{'permalink'} // "" |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 44 | 0 | 0 | 0 | $opts->{'sort'} // $self->sort |
| 0 | 0 | 0 | $opts->{'time'} // $self->time | |
| 78 | 7 | 0 | 0 | $d->{'url'} // $permalink |