line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Mocha::CalledOk::Between; |
2
|
|
|
|
|
|
|
# ABSTRACT: Concrete subclass of CalledOk for verifying methods called 'between' a min and max number of times |
3
|
|
|
|
|
|
|
$Test::Mocha::CalledOk::Between::VERSION = '0.66'; |
4
|
13
|
|
|
13
|
|
86
|
use parent 'Test::Mocha::CalledOk'; |
|
13
|
|
|
|
|
27
|
|
|
13
|
|
|
|
|
61
|
|
5
|
13
|
|
|
13
|
|
734
|
use strict; |
|
13
|
|
|
|
|
32
|
|
|
13
|
|
|
|
|
250
|
|
6
|
13
|
|
|
13
|
|
65
|
use warnings; |
|
13
|
|
|
|
|
24
|
|
|
13
|
|
|
|
|
1700
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub is { |
9
|
|
|
|
|
|
|
# uncoverable pod |
10
|
17
|
|
|
17
|
0
|
40
|
my ( $class, $got, $exp ) = @_; |
11
|
17
|
|
100
|
|
|
75
|
return $exp->[0] <= $got && $got <= $exp->[1]; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub stringify { |
15
|
|
|
|
|
|
|
# uncoverable pod |
16
|
17
|
|
|
17
|
0
|
33
|
my ( $class, $exp ) = @_; |
17
|
17
|
|
|
|
|
69
|
return "between $exp->[0] and $exp->[1] time(s)"; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |