File Coverage

blib/lib/Class/Delay/Message.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod 0 1 0.0
total 15 16 93.7


line stmt bran cond sub pod time code
1 1     1   4 use strict;
  1         1  
  1         36  
2             package Class::Delay::Message;
3 1     1   4 use base 'Class::Accessor::Fast';
  1         2  
  1         736  
4             __PACKAGE__->mk_accessors(qw( package method args is_trigger ));
5              
6             sub resume {
7 4     4 0 17 my $self = shift;
8 4         4 my @args = @{ $self->args };
  4         11  
9 4         29 my $invocant = shift @args;
10 4         11 my $method = $self->method;
11 4         29 $invocant->$method( @args );
12             }
13              
14             1;
15             __END__