File Coverage

blib/lib/Test/Mocha/CalledOk/Between.pm
Criterion Covered Total %
statement 13 13 100.0
branch n/a
condition 3 3 100.0
subroutine 5 5 100.0
pod 0 2 100.0
total 21 23 100.0


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.67';
4 13     13   94 use parent 'Test::Mocha::CalledOk';
  13         34  
  13         65  
5 13     13   778 use strict;
  13         40  
  13         246  
6 13     13   59 use warnings;
  13         24  
  13         1811  
7              
8             sub is {
9             # uncoverable pod
10 17     17 0 40 my ( $class, $got, $exp ) = @_;
11 17   100     83 return $exp->[0] <= $got && $got <= $exp->[1];
12             }
13              
14             sub stringify {
15             # uncoverable pod
16 17     17 0 40 my ( $class, $exp ) = @_;
17 17         65 return "between $exp->[0] and $exp->[1] time(s)";
18             }
19              
20             1;