Branch Coverage

blib/lib/Schedule/Load/Hosts/Host.pm
Criterion Covered Total %
branch 46 92 50.0


line true false branch
35 0 2 unless $self and ref $self
43 0 2 unless $self and ref $self
51 0 2 unless $self and ref $self
54 0 2 if (exists $$self{'dynamic'}{$field}) { }
0 2 elsif (exists $$self{'stored'}{$field}) { }
2 0 elsif (exists $$self{'const'}{$field}) { }
66 0 24 unless $self and ref $self
69 0 24 if (exists $$self{'dynamic'}{$field}) { }
0 24 elsif (exists $$self{'stored'}{$field}) { }
12 12 elsif (exists $$self{'const'}{$field}) { }
84 0 14 unless $self and ref $self
88 14 0 unless (ref $paramref)
122 0 6 unless $self and ref $self
124 0 6 unless defined $classesref and defined $$classesref[0]
125 0 6 unless ref $classesref
127 6 0 if get_undef($self, $_)
136 0 0 if get_undef($self, $_)
142 0 4 unless $self and ref $self
146 0 4 unless defined $subref
163 0 2 if ($self->cpus != $self->physical_cpus) { }
171 0 2 unless $self and ref $self
175 0 2 wantarray ? :
180 0 0 unless $$self{'dynamic'}{'holds'}
188 0 8 if $free < 0
194 0 4 unless $self and ref $self
198 0 4 if ($self->get_undef('load_limit') and $self->load_limit <= $self->adj_load)
217 0 4 if $rate <= 0
224 0 4 unless $self and ref $self
226 4 0 unless defined $subref
235 0 0 unless defined $subref
240 0 2 unless $self and ref $self
241 0 2 if $self->reserved
242 0 2 unless $self->rating
243 0 2 if $self->get_undef('slreportd_unresponsive')
252 0 10 unless my $type = ref $self
256 2 8 if (exists $$self{'dynamic'}{$field}) { }
1 7 elsif (exists $$self{'stored'}{$field}) { }
7 0 elsif (exists $$self{'const'}{$field}) { }
262 15 0 exists $_[0]{'stored'}{'reserved'} ? :
266 0 1 exists $_[0]{'stored'}{'archname'} ? :
0 25 exists $_[0]{'stored'}{'cpus'} ? :
0 142 exists $_[0]{'stored'}{'hostname'} ? :
0 5 exists $_[0]{'stored'}{'max_clock'} ? :
0 1 exists $_[0]{'stored'}{'osvers'} ? :
0 1 exists $_[0]{'stored'}{'physical_cpus'} ? :
0 2 exists $_[0]{'stored'}{'reservable'} ? :