line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Mocha::CalledOk::AtLeast; |
2
|
|
|
|
|
|
|
# ABSTRACT: Concrete subclass of CalledOk for verifying methods called 'atleast' number of times |
3
|
|
|
|
|
|
|
$Test::Mocha::CalledOk::AtLeast::VERSION = '0.66'; |
4
|
13
|
|
|
13
|
|
92
|
use parent 'Test::Mocha::CalledOk'; |
|
13
|
|
|
|
|
38
|
|
|
13
|
|
|
|
|
70
|
|
5
|
13
|
|
|
13
|
|
740
|
use strict; |
|
13
|
|
|
|
|
27
|
|
|
13
|
|
|
|
|
298
|
|
6
|
13
|
|
|
13
|
|
74
|
use warnings; |
|
13
|
|
|
|
|
23
|
|
|
13
|
|
|
|
|
1340
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub is { |
9
|
|
|
|
|
|
|
# uncoverable pod |
10
|
6
|
|
|
6
|
0
|
18
|
my ( $class, $got, $exp ) = @_; |
11
|
6
|
|
|
|
|
16
|
return $got >= $exp; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub stringify { |
15
|
|
|
|
|
|
|
# uncoverable pod |
16
|
6
|
|
|
6
|
0
|
14
|
my ( $class, $exp ) = @_; |
17
|
6
|
|
|
|
|
20
|
return "at least $exp time(s)"; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |