| blib/lib/Class/StateMachine.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 10 | 28 | 35.7 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 63 | 9 | 0 | 0 | $Class::StateMachine::ignore_same_state_changes and $new_state eq $old_state |
| 336 | 0 | 0 | 1 | CORE::ref $self and defined $state{$self} |
| line | l | !l | condition |
|---|---|---|---|
| 47 | 0 | 0 | $state{$self} // ' |
| 59 | 10 | 0 | $state{$self} // croak("object $self has no state, " . 'use Class::StateMachine::bless to create Class::StateMachine objects') |
| 124 | 0 | 1 | $state{$self} //= 'new' |
| 144 | 1 | 1 | $delayed{$self} //= [] |
| 168 | 0 | 0 | $on_leave_state{$self} //= [] |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 118 | 1 | 0 | 0 | $base_class //= caller |
| 221 | 0 | 13 | 0 | $$_[1] //= CvGV($$_[2]) |
| 249 | 0 | 1 | 0 | $state //= $class->state |
| 327 | 1 | 0 | 0 | ${$class . '::base_class';} // $class |