Conveyor/Ticket/Dispatcher/Test.pm

filter: Statementstmt 70.0% 14 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 62.5% 5 / 8 Podpod 100% 3 / 3 totaltotal 70.9% 22 / 31 CC 1 SCAR 2.2
CC
1
Cov
70%
close_ticket
2.0
finish_ticket
2.0
BEGIN
1.0
CRAP 1.2
« Conveyor/Transaction.pm ↑ Summary Conveyor/Storage/DBI/SQLite.pm »
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__
« Conveyor/Transaction.pm ↑ Summary Conveyor/Storage/DBI/SQLite.pm »