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
68 0 34 1076 defined $self->{'our_url'} and keys %{$$self{'bucket_to_root'};} > 0
34 0 1076 defined $self->{'our_url'} and keys %{$$self{'bucket_to_root'};} > 0 and keys %{$$self{'bucket_to_url'};} > 0
135 0 0 321 $self->{'state_file'} and -e $self->{'state_file'}
137 24 0 297 $self->{'_state'}{'mod_time'} and $self->{'_state'}{'mod_time'} == &Yars::Tools::stat($self->{'state_file'})->mtime
163 5 313 0 -d $root and not -w $root
217 0 0 0 exists $self->{'server_status_cache'}{$server_url} and $self->{'server_status_cache'}{$server_url}{'checked'} > time - $self->{'server_status_cache_lifetime'}
225 0 0 0 defined $got->{'server_version'} and length $got->{'server_version'}
402 0 1 1 $existing->size == $asset->size && $asset->slurp eq $existing->slurp

or 2 conditions

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

or 3 conditions

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