Condition Coverage

blib/lib/WWW/Noss.pm
Criterion Covered Total %
condition 0 212 0.0


and 3 conditions

line !l l&&!r l&&r condition
290 0 0 0 exists $ENV{'XDG_DATA_HOME'} and -d $ENV{'XDG_DATA_HOME'}
518 0 0 0 $json->{'line_width'} =~ /^\d+$/u and $json->{'line_width'} > 0
802 0 0 0 not ref $f and defined $f
908 0 0 0 $self->{'UseColor'} and -t STDERR
985 0 0 0 !$self->{'Unconditional'} && -f $feed->path
996 0 0 0 defined $resp and $resp->[1] eq 429
998 0 0 0 defined $retry and $retry =~ /^\d+$/u
1005 0 0 0 defined $resp and $resp->[1] =~ /^[45]/u
1077 0 0 0 $feed->respect_skip and not $self->{'Unconditional'}
0 0 0 $feed->respect_skip and not $self->{'Unconditional'} and $skip
1083 0 0 0 $feed->respect_skip and not $self->{'Unconditional'}
0 0 0 $feed->respect_skip and not $self->{'Unconditional'} and not $feed->can_we_retry
1368 0 0 0 defined $id and not $self->{'NoMark'}
1507 0 0 0 defined $targ and $self->{'MarkAll'}
1551 0 0 0 defined $feed and defined $id
1780 0 0 0 $f->feed =~ m[^(file|shell)://]u and not $self->{'ExportSpec'}
1834 0 0 0 exists $json->{'feeds'}{$name} and $f->{'xml_url'} ne $json->{'feeds'}{$name}
2079 0 0 0 $self->{'Brief'} and $self->{'Cmd'} eq "feeds"
2155 0 0 0 defined $self->{'Status'} and not $self->{'Status'} =~ /^(un)?read$/u
2167 0 0 0 defined $self->{'RateLimit'} and not $self->{'RateLimit'} =~ /$RATE_RX/u
2208 0 0 0 $self->{'AutoClean'} and not $DOESNT_NEED_FEED{$self->{'Cmd'}}

or 2 conditions

line l !l condition
732 0 0 $json->{'groups'} // {}
733 0 0 $json->{'default'} // {}
859 0 0 $colors //= {}
1096 0 0 $@ || 'unknown error'
1426 0 0 $self->{'DB'}->largest_id(@feeds) // 0
1427 0 0 &max(map({length $_;} @feeds)) // 1
1625 0 0 $f //= {"nossname", $self->{'Feeds'}{$n}->name, "nosslink", $self->{'Feeds'}{$n}->feed}
1827 0 0 $_->{'groups'} // []
1845 0 0 $f->{'groups'} // []
2141 0 0 $self->{'AutoClean'} //= 0
2144 0 0 $ENV{'BROWSER'} // "lynx"
2145 0 0 $self->{'ListLimit'} //= 0
2159 0 0 $self->{'Sort'} //= "date"

or 3 conditions

line l !l&&r !l&&!r condition
427 0 0 0 $self->{'FeedFile'} //= "File::Spec"->file_name_is_absolute($p) ? $json->{'feeds'} : "File::Spec"->catfile($cd, $p)
439 0 0 0 $self->{'DataDir'} //= "File::Spec"->file_name_is_absolute($p) ? $json->{'data'} : "File::Spec"->catfile($cd, $p)
447 0 0 0 $self->{'Forks'} //= $json->{'downloads'}
455 0 0 0 $self->{'Pager'} //= $json->{'pager'}
463 0 0 0 $self->{'Browser'} //= $json->{'browser'}
471 0 0 0 $self->{'RateLimit'} //= $json->{'limit_rate'}
481 0 0 0 $self->{'UserAgent'} //= $json->{'user_agent'}
487 0 0 0 $self->{'Timeout'} //= $json->{'timeout'}
497 0 0 0 $self->{'Proxy'} //= $json->{'proxy'}
503 0 0 0 $self->{'ProxyUser'} //= $json->{'proxy_user'}
511 0 0 0 $self->{'Sort'} //= $json->{'sort'}
519 0 0 0 $self->{'LineWidth'} //= $json->{'line_width'}
529 0 0 0 $self->{'ListFmt'} //= $json->{'list_format'}
537 0 0 0 $self->{'ReadFmt'} //= $json->{'read_format'}
545 0 0 0 $self->{'PostFmt'} //= $json->{'post_format'}
553 0 0 0 $self->{'FeedsFmt'} //= $json->{'feeds_fmt'}
558 0 0 0 $self->{'AutoClean'} //= !!$json->{'autoclean'}
565 0 0 0 $self->{'TimeFmt'} //= $json->{'time_format'}
571 0 0 0 $self->{'ListLimit'} //= $json->{'list_limit'}
595 0 0 0 $self->{'ListUnreadFmt'} //= $json->{'list_unread_format'}
602 0 0 0 $self->{'UseColor'} //= $json->{'colored_output'} ? undef : 0
814 0 0 0 ref $f->{'feed'} or not defined $f->{'feed'}
1006 0 0 0 $resp->[2] || http_status_string($resp->[1])
1095 0 0 0 $@ ne "" or not -f $feed->path
1507 0 0 0 defined $targ || $self->{'MarkAll'}
1525 0 0 0 $+{'to'} // $+{'from'}
1982 0 0 0 $_[1] eq "" or $_[1] eq 1
1993 0 0 0 $_[1] eq "" or $_[1] eq 1
2050 0 0 0 defined $self->{'Cmd'} || $_[0] =~ /^-/u
2077 0 0 0 $self->{'ConfFile'} //= _default_config()
2087 0 0 0 $self->{'DataDir'} //= _default_data_dir()
2122 0 0 0 $self->{'FeedFile'} //= _default_feeds()
2135 0 0 0 $self->{'Forks'} //= $DEFAULT_FORKS
2142 0 0 0 $self->{'UserAgent'} //= $DEFAULT_AGENT
2143 0 0 0 $ENV{'PAGER'} // $DEFAULT_PAGER
0 0 0 $self->{'Pager'} //= $ENV{'PAGER'} // $DEFAULT_PAGER
2144 0 0 0 $self->{'Browser'} //= $ENV{'BROWSER'} // "lynx"
2146 0 0 0 $self->{'LineWidth'} //= $DEFAULT_WIDTH
2147 0 0 0 $self->{'ReadFmt'} //= $DEFAULT_READ_FMT
2148 0 0 0 $self->{'PostFmt'} //= $DEFAULT_POST_FMT
2149 0 0 0 $self->{'FeedsFmt'} //= $DEFAULT_FEED_FMT