Aspect/Library/Wormhole.pm

filter: Statementstmt 100% 27 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 9 / 9 Podpod 0.0% 0 / 1 totaltotal 97.3% 36 / 37 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Aspect/Pointcut/Logic.pm ↑ Summary Aspect/Guard.pm »
1 package Aspect::Library::Wormhole;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use Aspect::Modular ();
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use Aspect::Advice::Before ();
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use Aspect::Pointcut::And ();
Subroutine BEGIN: called CC=1 SCAR=0.0
8 2 ▶use Aspect::Pointcut::Call ();
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 ▶use Aspect::Pointcut::Cflow ();
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 2 our $VERSION = '0.97_06';
12 2 our @ISA = 'Aspect::Modular';
13  
14 sub get_advice {
15 2 ▶ my $self = shift;
Subroutine get_advice: called CC=1 SCAR=0.0
Pod undocumented
16 Aspect::Advice::Before->new(
17 lexical => $self->lexical,
18 pointcut => Aspect::Pointcut::And->new(
19 Aspect::Pointcut::Call->new( $_[1] ),
20 Aspect::Pointcut::Cflow->new( source => $_[0] ),
21 ),
22 code => sub {
23 2 ▶ $_->args( $_->args, $_->source->self );
Subroutine __ANON__: called CC=1 SCAR=0.0
24 },
25 2 );
26 }
27  
28 2 1;
29  
30 __END__
« Aspect/Pointcut/Logic.pm ↑ Summary Aspect/Guard.pm »