blib/lib/EntityModel/Transaction.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 13 | 16 | 81.2 |
line | true | false | branch |
---|---|---|---|
47 | 1 | 3 | if $$self{'rolled_back'} |
55 | 0 | 3 | unless try sub { 1; } , catch(sub { $self->mark_failure; $self->mark_goodbye; 0; } ) |
76 | 2 | 0 | if exists $$self{'on_failure'} |
93 | 2 | 1 | if exists $$self{'on_success'} |
110 | 4 | 1 | if exists $$self{'on_goodbye'} |
144 | 2 | 3 | unless try sub { sap($self, $code)->(); 1; } , catch(sub { $self->mark_failure; $self->mark_goodbye; 0; } ) |
150 | 2 | 3 | if $$self{'rolled_back'} |
157 | 0 | 5 | unless $$self{'committed'} or $$self{'rolled_back'} |