Condition Coverage

blib/lib/Net/Starnet/DataAccounting.pm
Criterion Covered Total %
condition 8 24 33.3


and 3 conditions

line !l l&&!r l&&r condition
139 0 0 1 defined $server and length $server
144 0 0 1 $port < 65536 and $port > 0
146 0 0 1 defined $opts{'user'} and $opts{'user'} =~ /^\w+$/
147 0 0 1 defined $opts{'pass'} and $opts{'pass'} =~ /^\d+$/

or 3 conditions

line l !l&&r !l&&!r condition
118 0 1 0 ref $class || $class
138 0 1 0 $opts{'server'} || $defaults{'server'}
143 0 1 0 $opts{'port'} || $defaults{'port'}
149 0 1 0 $opts{'client'} || $defaults{'client'}