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.61'; |
4
|
21
|
|
|
21
|
|
74
|
use strict; |
|
21
|
|
|
|
|
24
|
|
|
21
|
|
|
|
|
598
|
|
5
|
21
|
|
|
21
|
|
85
|
use warnings; |
|
21
|
|
|
|
|
25
|
|
|
21
|
|
|
|
|
455
|
|
6
|
21
|
|
|
21
|
|
104
|
use parent 'Test::Mocha::CalledOk'; |
|
21
|
|
|
|
|
25
|
|
|
21
|
|
|
|
|
76
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub is { |
9
|
|
|
|
|
|
|
# uncoverable pod |
10
|
9
|
|
|
9
|
0
|
16
|
my ( $class, $got, $exp ) = @_; |
11
|
9
|
|
|
|
|
24
|
return $got >= $exp; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub stringify { |
15
|
|
|
|
|
|
|
# uncoverable pod |
16
|
9
|
|
|
9
|
0
|
15
|
my ( $class, $exp ) = @_; |
17
|
9
|
|
|
|
|
30
|
return "at least $exp time(s)"; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |