Condition Coverage

blib/lib/Yars/Tools.pm
Criterion Covered Total %
condition 22 44 50.0


and 3 conditions

line !l l&&!r l&&r condition
67 0 34 1077 defined $self->{'our_url'} and keys %{$$self{'bucket_to_root'};} > 0
34 0 1077 defined $self->{'our_url'} and keys %{$$self{'bucket_to_root'};} > 0 and keys %{$$self{'bucket_to_url'};} > 0
134 0 0 324 $self->{'state_file'} and -e $self->{'state_file'}
136 24 0 300 $self->{'_state'}{'mod_time'} and $self->{'_state'}{'mod_time'} == &Yars::Tools::stat($self->{'state_file'})->mtime
162 5 316 0 -d $root and not -w $root
216 0 0 0 exists $self->{'server_status_cache'}{$server_url} and $self->{'server_status_cache'}{$server_url}{'checked'} > time - $self->{'server_status_cache_lifetime'}
224 0 0 0 defined $got->{'server_version'} and length $got->{'server_version'}
401 0 1 1 $existing->size == $asset->size && $asset->slurp eq $existing->slurp

or 2 conditions

line l !l condition
163 321 0 $class->_state->{'disks'}{$root} || 'up'

or 3 conditions

line l !l&&r !l&&!r condition
68 33 1 0 $config ||= 'Clustericious::Config'->new('Yars')
69 2 32 0 $self->{'our_url'} ||= $config->url
137 24 0 0 our $j ||= 'JSON::MaybeXS'->new
149 12 23 0 our $j ||= 'JSON::MaybeXS'->new
299 1228 0 0 shift() || $class->disk_for($digest) || LOGDIE("No local disk for $digest")
383 36 0 72 $val < 1024 or not @units