| 1 | 1 | ▶ | use 5.008; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | package Data::Conveyor::Ticket::Dispatcher::Test; | ||
| 6 | 1 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | $Data::Conveyor::Ticket::Dispatcher::Test::VERSION = '1.103130'; | |
| 8 | } | ||
| 9 | # ABSTRACT: Stage-based conveyor-belt-like ticket handling system | ||
| 10 | |||
| 11 | 1 | ▶ | use parent 'Data::Conveyor::Ticket::Dispatcher'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 1 | __PACKAGE__->mk_scalar_accessors(qw(callback)); | |
| 13 | |||
| 14 | 0 | ▶ | sub close_ticket { |
|
Subroutine
close_ticket: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 15 | 0 | my $self = shift; | |
| 16 | 0 | $self->SUPER::close_ticket(@_); | |
| 17 | 0 | $self->callback->after_ticket_closed; | |
| 18 | } | ||
| 19 | |||
| 20 | 0 | ▶ | sub finish_ticket { |
|
Subroutine
finish_ticket: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 21 | 0 | my $self = shift; | |
| 22 | 0 | $self->SUPER::finish_ticket(@_); | |
| 23 | 0 | $self->callback->after_ticket_finished; | |
| 24 | } | ||
| 25 | |||
| 26 | # Do nothing here - neither commit nor rollback. Rollback would destroy the | ||
| 27 | # ticket and the next dispatcher run wouldn't find the ticket anymore. | ||
| 28 | # Committing might leave artefacts in the db after the tests have run; so | ||
| 29 | # leave everything in a big transaction. | ||
| 30 | 0 | ▶ | sub finish_db_transaction { |
|
Subroutine
finish_db_transaction: not called CC=1 SCAR=0.0
Pod
documented
| |||
| 31 | } | ||
| 32 | 1 | 1; | |
| 33 | |||
| 34 | |||
| 35 | __END__ | ||