Aspect/Pointcut/True.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 100% 2 / 2 totaltotal 100% 28 / 28 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Aspect/Pointcut/Returning.pm ↑ Summary
1 package Aspect::Pointcut::True;
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 Aspect::Pointcut ();
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 21 our $VERSION = '0.97_06';
8 21 our @ISA = 'Aspect::Pointcut';
9  
10  
11  
12  
13  
14 ######################################################################
15 # Weaving Methods
16  
17 # The true pointcut is a run-time only pointcut
18 sub curry_weave {
19 1 ▶ return;
Subroutine curry_weave: called CC=1 SCAR=0.0
Pod documented
20 }
21  
22 # The true pointcut contains no state and doesn't need to be curried.
23 # Simply return it as-is and reuse it everywhere.
24 sub curry_runtime {
25 1 ▶ return $_[0];
Subroutine curry_runtime: called CC=1 SCAR=0.0
Pod documented
26 }
27  
28  
29  
30  
31  
32 ######################################################################
33 # Runtime Methods
34  
35 sub compile_runtime {
36 $_[0]->[0];
37 }
38  
39  
40  
41  
42  
43 ######################################################################
44 # Optional XS Acceleration
45  
46 BEGIN {
47 21 ▶ local $@;
Subroutine BEGIN: called CC=1 SCAR=0.0
48 21 ▶ eval <<'END_PERL';
Subroutine BEGIN: called CC=1 SCAR=0.0
49 use Class::XSAccessor::Array 1.08 {
50 replace => 1,
51 getters => {
52 'compile_runtime' => 0,
53 },
54 };
55 END_PERL
56 }
57  
58 21 1;
59  
60 __END__
« Aspect/Pointcut/Returning.pm ↑ Summary