line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Spec::RMock; |
2
|
|
|
|
|
|
|
# ABSTRACT: a mocking library for Test::Spec |
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
147406
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
33
|
|
5
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
31
|
|
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
5
|
use Exporter qw(import); |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
24
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
545
|
use Test::Spec::RMock::AnyConstraint; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
25
|
|
10
|
1
|
|
|
1
|
|
709
|
use Test::Spec::RMock::AtLeastConstraint; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
27
|
|
11
|
1
|
|
|
1
|
|
634
|
use Test::Spec::RMock::ExactlyConstraint; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
27
|
|
12
|
1
|
|
|
1
|
|
611
|
use Test::Spec::RMock::MessageExpectation; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
187
|
|
13
|
1
|
|
|
1
|
|
1732
|
use Test::Spec::RMock::MockObject; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
91
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
our @EXPORT = qw(rmock); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub rmock { |
18
|
24
|
|
|
24
|
1
|
17340
|
my ($name) = @_; |
19
|
24
|
|
|
|
|
189
|
Test::Spec::RMock::MockObject->new($name); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__END__ |