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