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