line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::EasyMock::ArgumentsMatcher; |
2
|
9
|
|
|
9
|
|
46
|
use strict; |
|
9
|
|
|
|
|
18
|
|
|
9
|
|
|
|
|
289
|
|
3
|
9
|
|
|
9
|
|
48
|
use warnings; |
|
9
|
|
|
|
|
17
|
|
|
9
|
|
|
|
|
270
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
=head1 NAME |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
Test::EasyMock::ArgumentsMatcher - Arguments matcher. |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=cut |
10
|
9
|
|
|
9
|
|
7415
|
use Test::Deep::NoTest qw(eq_deeply); |
|
9
|
|
|
|
|
130077
|
|
|
9
|
|
|
|
|
180
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 CONSTRUCTORS |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head2 new($args) |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
Create a instance. |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=cut |
19
|
|
|
|
|
|
|
sub new { |
20
|
52
|
|
|
52
|
1
|
79
|
my ($class, $args) = @_; |
21
|
52
|
|
|
|
|
497
|
return bless { _args => $args }, $class; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 METHODS |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head2 matches($args) |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
It is tested whether the specified argument matches. |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=cut |
31
|
|
|
|
|
|
|
sub matches { |
32
|
101
|
|
|
101
|
1
|
146
|
my ($self, $args) = @_; |
33
|
101
|
|
|
|
|
327
|
return eq_deeply($args, $self->{_args}); |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |