Aspect/Point/Before.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 26 / 26 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Aspect/Library.pm ↑ Summary Aspect/Pointcut/Highest.pm »
1 package Aspect::Point::Before;
2  
3 =pod
4  
5 =head1 NAME
6  
7 Aspect::Point - The Join Point context for "before" advice code
8  
9 =head1 SYNOPSIS
10  
11 =head1 METHODS
12  
13 =cut
14  
15 21 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 21 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 21 ▶use Aspect::Point ();
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 21 our $VERSION = '0.97_06';
20 21 our @ISA = 'Aspect::Point';
21  
22 21 ▶use constant type => 'before';
Subroutine BEGIN: called CC=1 SCAR=0.0
23  
24 sub original {
25 $_[0]->{original};
26 }
27  
28 sub proceed {
29 @_ > 1 ? $_[0]->{proceed} = $_[1] : $_[0]->{proceed};
30 }
31  
32  
33  
34  
35  
36 ######################################################################
37 # Optional XS Acceleration
38  
39 BEGIN {
40 21 ▶ local $@;
Subroutine BEGIN: called CC=1 SCAR=0.0
41 21 ▶ eval <<'END_PERL';
Subroutine BEGIN: called CC=1 SCAR=0.0
42 use Class::XSAccessor 1.08 {
43 replace => 1,
44 getters => {
45 'original' => 'original',
46 },
47 accessors => {
48 'proceed' => 'proceed',
49 },
50 };
51 END_PERL
52 }
53  
54 21 1;
55  
56 =pod
57  
58 =head1 AUTHORS
59  
60 Adam Kennedy E<lt>adamk@cpan.orgE<gt>
61  
62 Marcel GrE<uuml>nauer E<lt>marcel@cpan.orgE<gt>
63  
64 Ran Eilam E<lt>eilara@cpan.orgE<gt>
65  
66 =head1 COPYRIGHT
67  
68 Copyright 2001 by Marcel GrE<uuml>nauer
69  
70 Some parts copyright 2009 - 2011 Adam Kennedy.
71  
72 This library is free software; you can redistribute it and/or modify
73 it under the same terms as Perl itself.
74  
75 =cut
« Aspect/Library.pm ↑ Summary Aspect/Pointcut/Highest.pm »