line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Mock::Signature::Meta; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
15
|
use strict; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
92
|
|
4
|
3
|
|
|
3
|
|
14
|
use warnings; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
73
|
|
5
|
|
|
|
|
|
|
|
6
|
3
|
|
|
3
|
|
2247
|
use Test::Mock::Signature::Dispatcher; |
|
3
|
|
|
|
|
10
|
|
|
3
|
|
|
|
|
748
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
5
|
|
|
5
|
1
|
21
|
my ($class, %params) = @_; |
10
|
|
|
|
|
|
|
|
11
|
5
|
|
|
|
|
32
|
return bless(\%params, $class); |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub callback { |
15
|
9
|
|
|
9
|
1
|
24
|
my $self = shift; |
16
|
9
|
|
|
|
|
13
|
my $callback = shift; |
17
|
|
|
|
|
|
|
|
18
|
9
|
100
|
|
|
|
37
|
return $self->{'callback'} unless defined $callback; |
19
|
|
|
|
|
|
|
|
20
|
4
|
|
|
|
|
18
|
my $real_class = $self->{'class'}; |
21
|
4
|
|
|
|
|
22
|
my $mock = $real_class->_tms_mock_instance; # defined in import |
22
|
|
|
|
|
|
|
|
23
|
4
|
|
|
|
|
10
|
$self->{'callback'} = $callback; |
24
|
|
|
|
|
|
|
|
25
|
4
|
|
|
|
|
26
|
my $dispatcher = $mock->dispatcher($self->{'method'}); |
26
|
4
|
|
|
|
|
20
|
$dispatcher->add($self); |
27
|
4
|
|
|
|
|
109
|
$dispatcher->compile; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub params { |
31
|
14
|
|
|
14
|
1
|
27
|
my $self = shift; |
32
|
|
|
|
|
|
|
|
33
|
14
|
|
|
|
|
57
|
return $self->{'params'}; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
42; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__END__ |