Branch Coverage

blib/lib/Acme/FishFarm/Feeder.pm
Criterion Covered Total %
branch 30 46 65.2


line true false branch
100 4 2 unless ($options{'timer'})
107 4 2 unless ($options{'feeding_volume'})
111 6 0 unless ($options{'food_tank_capacity'})
115 6 0 unless ($options{'current_food_amount'})
135 0 2 unless ref(my $self = shift())
148 0 0 unless ref(my $self = shift())
160 0 5 unless ref(my $self = shift())
163 2 3 if ($self->{'first_usage'})
168 1 2 if ($self->{'clock'} % $self->{'timer'} == 0) { }
186 0 3 unless ref(my $self = shift())
199 0 10 unless ref(my $self = shift())
213 0 2 unless ref(my $self = shift())
225 0 1 unless ref(my $self = shift())
237 0 11 unless ref(my $self = shift())
263 0 4 unless ref(my $self = shift())
265 2 2 if ($self->{'current_food_amount'} - $self->{'feeding_volume'} <= 0) { }
266 2 0 if ($options{'verbose'})
285 0 2 unless ref(my $self = shift())
286 1 1 unless my $volume = shift()
297 0 3 unless ref(my $self = shift())
313 0 5 unless ref(my $self = shift())
316 1 4 unless int $volume
318 1 3 if ($volume > $self->{'food_tank_capacity'}) { }