Mock/Event.pm

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 80.0% 4 / 5 totaltotal 97.0% 33 / 34 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Mock/Control.pm ↑ Summary Mock.pm »
1 package JIP::Mock::Event;
2  
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 ▶use English qw(-no_match_vars);
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 3 our $VERSION = 'v0.0.4';
9  
10 31 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
11 31 my ( $class, %param ) = @ARG;
12  
13 return bless(
14 {
15 method => $param{method},
16 arguments => $param{arguments},
17 want_array => $param{want_array},
18 times => $param{times},
19 },
20 31 $class,
21 );
22 }
23  
24 13 ▶sub method {
Subroutine method: called CC=1 SCAR=0.0
Pod documented
25 13 my ($self) = @ARG;
26  
27 13 return $self->{method};
28 }
29  
30 13 ▶sub arguments {
Subroutine arguments: called CC=1 SCAR=0.0
Pod documented
31 13 my ($self) = @ARG;
32  
33 13 return $self->{arguments};
34 }
35  
36 7 ▶sub want_array {
Subroutine want_array: called CC=1 SCAR=0.0
Pod documented
37 7 my ($self) = @ARG;
38  
39 7 return $self->{want_array};
40 }
41  
42 8 ▶sub times { ## no critic (Subroutines::ProhibitBuiltinHomonyms)
Subroutine times: called CC=1 SCAR=0.0
Pod documented
43 8 my ($self) = @ARG;
44  
45 8 return $self->{times};
46 }
47  
48 3 1;
49  
50 __END__
« Mock/Control.pm ↑ Summary Mock.pm »