line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package JIP::Mock::Event; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
71422
|
use strict; |
|
3
|
|
|
|
|
14
|
|
|
3
|
|
|
|
|
93
|
|
4
|
3
|
|
|
3
|
|
16
|
use warnings; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
86
|
|
5
|
|
|
|
|
|
|
|
6
|
3
|
|
|
3
|
|
15
|
use English qw(-no_match_vars); |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
16
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = 'v0.0.3'; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub new { |
11
|
25
|
|
|
25
|
0
|
4213
|
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
|
25
|
|
|
|
|
122
|
$class, |
21
|
|
|
|
|
|
|
); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub method { |
25
|
13
|
|
|
13
|
1
|
1238
|
my ($self) = @ARG; |
26
|
|
|
|
|
|
|
|
27
|
13
|
|
|
|
|
53
|
return $self->{method}; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub arguments { |
31
|
13
|
|
|
13
|
1
|
21
|
my ($self) = @ARG; |
32
|
|
|
|
|
|
|
|
33
|
13
|
|
|
|
|
45
|
return $self->{arguments}; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub want_array { |
37
|
7
|
|
|
7
|
1
|
16
|
my ($self) = @ARG; |
38
|
|
|
|
|
|
|
|
39
|
7
|
|
|
|
|
24
|
return $self->{want_array}; |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub times { ## no critic (Subroutines::ProhibitBuiltinHomonyms) |
43
|
8
|
|
|
8
|
1
|
60
|
my ($self) = @ARG; |
44
|
|
|
|
|
|
|
|
45
|
8
|
|
|
|
|
26
|
return $self->{times}; |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
1; |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
__END__ |