Branch Coverage

blib/lib/Net/Async/WebSearch/Provider/Reddit.pm
Criterion Covered Total %
branch 10 32 31.2


line true false branch
26 0 9 if (@_ > 1) { }
27 0 9 if (@_ > 1) { }
28 0 9 if (@_ > 1) { }
36 0 0 defined $opts->{'subreddit'} ? :
37 0 0 defined $sub && length $sub ? :
46 0 0 if defined $sub and length $sub
47 0 0 $opts->{'include_nsfw'} ? :
57 0 0 unless ($resp->is_success)
63 0 0 if (my $e = $@)
74 0 9 unless +($data->{'data'} || {})->{'children'}
75 0 7 unless my $d = $child->{'data'}
80 7 0 if (defined $d->{'created_utc'})
103 0 7 $d->{'selftext'} && length $d->{'selftext'} ? :
0 7 $d->{'over_18'} ? :
7 0 defined $d->{'created_utc'} ? :
106 0 7 if $rank >= $limit