Leaky/Driver/Simple.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 2 / 2 totaltotal 100% 27 / 27 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
__ANON__
1.0
CRAP 1.0
« Leaky/Driver.pm ↑ Summary Leaky/State.pm »
1 package Queue::Leaky::Driver::Simple;
2  
3 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Queue::Base;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 has 'base' => (
7 is => 'rw',
8 isa => 'Queue::Base',
9 3 ▶ default => sub { Queue::Base->new },
Subroutine __ANON__: called CC=1 SCAR=0.0
10 1 required => 1,
11 handles => {
12 fetch => 'remove',
13 clear => 'clear',
14 },
15 );
16  
17 1 with 'Queue::Leaky::Driver';
18  
19 1 __PACKAGE__->meta->make_immutable;
20  
21 1 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 5 ▶sub next {
Subroutine next: called CC=1 SCAR=0.0
Pod documented
24 5 my $self = shift;
25 5 ! $self->base->empty;
26 }
27  
28 7 ▶sub insert {
Subroutine insert: called CC=1 SCAR=0.0
Pod documented
29 7 my $self = shift;
30 7 $self->base->add(@_);
31 7 return 1;
32 }
33  
34 1 1;
35  
36 __END__
« Leaky/Driver.pm ↑ Summary Leaky/State.pm »