line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Mocha::CalledOk::Times; |
2
|
|
|
|
|
|
|
# ABSTRACT: Concrete subclass of CalledOk for verifying methods called an exact number of 'times' |
3
|
|
|
|
|
|
|
$Test::Mocha::CalledOk::Times::VERSION = '0.66'; |
4
|
13
|
|
|
13
|
|
5494
|
use parent 'Test::Mocha::CalledOk'; |
|
13
|
|
|
|
|
3954
|
|
|
13
|
|
|
|
|
81
|
|
5
|
13
|
|
|
13
|
|
621
|
use strict; |
|
13
|
|
|
|
|
27
|
|
|
13
|
|
|
|
|
234
|
|
6
|
13
|
|
|
13
|
|
61
|
use warnings; |
|
13
|
|
|
|
|
25
|
|
|
13
|
|
|
|
|
1210
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub is { |
9
|
|
|
|
|
|
|
# uncoverable pod |
10
|
89
|
|
|
89
|
0
|
196
|
my ( $class, $got, $exp ) = @_; |
11
|
89
|
|
|
|
|
228
|
return $got == $exp; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub stringify { |
15
|
|
|
|
|
|
|
# uncoverable pod |
16
|
89
|
|
|
89
|
0
|
171
|
my ( $class, $exp ) = @_; |
17
|
89
|
|
|
|
|
244
|
return "$exp time(s)"; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |