Condition Coverage

blib/lib/PAGI/Lifespan.pm
Criterion Covered Total %
condition 21 35 60.0


and 3 conditions

line !l l&&!r l&&r condition
53 0 0 5 $scope and ref $scope eq "HASH"
94 0 0 12 $scope and ($scope->{'type'} // "") eq "lifespan"

or 2 conditions

line l !l condition
73 13 0 $scope->{'type'} // ""
77 1 5 $scope->{'state'} //= {}
83 1 1 $self->{'_state'} // {}
94 12 0 $scope->{'type'} // ""
102 12 0 $self->{'_handlers'} // []
104 11 1 $scope->{'state'} //= {}
109 22 0 $msg->{'type'} // ""

or 3 conditions

line l !l&&r !l&&!r condition
20 5 2 7 $args{'startup'} or $args{'shutdown'}
43 6 3 0 $args{'startup'} or $args{'shutdown'}
54 0 5 0 $scope->{'pagi.lifespan.manager'} //= $class->new
76 0 6 0 $scope->{'pagi.lifespan.manager'} //= $self
83 5 2 0 $inner_scope->{'state'} //= $self->{'_state'} // {}