File Coverage

blib/lib/Data/Model/Mixin/Queue/Q4M.pm
Criterion Covered Total %
statement 10 18 55.5
branch 0 4 0.0
condition n/a
subroutine 4 6 66.6
pod 0 3 0.0
total 14 31 45.1


line stmt bran cond sub pod time code
1             package Data::Model::Mixin::Queue::Q4M;
2 1     1   4 use strict;
  1         2  
  1         26  
3 1     1   5 use warnings;
  1         2  
  1         19  
4              
5 1     1   4 use Carp ();
  1         2  
  1         159  
6             $Carp::Internal{(__PACKAGE__)}++;
7              
8             sub register_method {
9             +{
10 1     1 0 5 queue_running => \&queue_running,
11             queue_abort => \&queue_abort,
12             };
13             }
14              
15             sub queue_running {
16 0     0 0   my $self = $_[0];
17 0           my $driver = $self->get_base_driver;
18 0 0         Carp::croak "Can't find base_driver" unless $driver;
19              
20 0           $driver->queue_running( @_ );
21             }
22              
23             sub queue_abort {
24 0     0 0   my $self = $_[0];
25 0           my $driver = $self->get_base_driver;
26 0 0         Carp::croak "Can't find base_driver" unless $driver;
27              
28 0           $driver->queue_abort( @_ );
29             }
30              
31             1;
32              
33             =head1 NAME
34              
35             Data::Model::Mixin::Queue::Q4M - add methods for Driver::Queue::Q4M
36              
37             =head1 SEE ALSO
38              
39             L
40              
41             =head1 AUTHOR
42              
43             Kazuhiro Osawa Eyappo shibuya plE
44              
45             =head1 LICENSE
46              
47             This library is free software; you can redistribute it and/or modify
48             it under the same terms as Perl itself.
49              
50             =cut