Aspect/Pointcut/Highest.pm

filter: Statementstmt 100% 32 / 32 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 13 / 13 Podpod 100% 4 / 4 totaltotal 100% 49 / 49 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Aspect/Point/Before.pm ↑ Summary Aspect/Pointcut/Returning.pm »
1 package Aspect::Pointcut::Highest;
2  
3 21 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 21 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 21 ▶use Carp ();
Subroutine BEGIN: called CC=1 SCAR=0.0
6 21 ▶use Scalar::Util ();
Subroutine BEGIN: called CC=1 SCAR=0.0
7 21 ▶use Params::Util ();
Subroutine BEGIN: called CC=1 SCAR=0.0
8 21 ▶use Aspect::Guard ();
Subroutine BEGIN: called CC=1 SCAR=0.0
9 21 ▶use Aspect::Pointcut ();
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 20 our $VERSION = '0.97_06';
12 21 our @ISA = 'Aspect::Pointcut';
13  
14  
15  
16  
17  
18 ######################################################################
19 # Constructor Methods
20  
21 sub new {
22 3 ▶ bless [ ], $_[0];
Subroutine new: called CC=1 SCAR=0.0
Pod documented
23 }
24  
25  
26  
27  
28  
29 ######################################################################
30 # Weaving Methods
31  
32 # The highest pointcut is a run-time only pointcut
33 sub curry_weave {
34 1 ▶ return;
Subroutine curry_weave: called CC=1 SCAR=0.0
Pod documented
35 }
36  
37 # Call pointcuts curry away to null, because they are the basis
38 # for which methods to hook in the first place. Any method called
39 # at run-time has already been checked.
40 sub curry_runtime {
41 3 ▶ bless [ 0 ], $_[0];
Subroutine curry_runtime: called CC=1 SCAR=0.0
Pod documented
42 }
43  
44  
45  
46  
47  
48 ######################################################################
49 # Runtime Methods
50  
51 sub compile_runtime {
52 1 ▶ my $depth = 0;
Subroutine compile_runtime: called CC=1 SCAR=0.0
Pod documented
53 return sub {
54 4 ▶ $_->{highest} = Aspect::Guard->new( sub { $depth-- } );
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
55 4 return ! $depth++;
56 1 };
57 }
58  
59 21 1;
60  
61 __END__
« Aspect/Point/Before.pm ↑ Summary Aspect/Pointcut/Returning.pm »