File Coverage

blib/lib/Test/Mocha/CalledOk/AtMost.pm
Criterion Covered Total %
statement 13 13 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 0 2 100.0
total 18 20 100.0


line stmt bran cond sub pod time code
1             package Test::Mocha::CalledOk::AtMost;
2             # ABSTRACT: Concrete subclass of CalledOk for verifying methods called 'atmost' number of times
3             $Test::Mocha::CalledOk::AtMost::VERSION = '0.66';
4 13     13   86 use parent 'Test::Mocha::CalledOk';
  13         26  
  13         89  
5 13     13   737 use strict;
  13         32  
  13         293  
6 13     13   69 use warnings;
  13         27  
  13         1469  
7              
8             sub is {
9             # uncoverable pod
10 6     6 0 17 my ( $class, $got, $exp ) = @_;
11 6         20 return $got <= $exp;
12             }
13              
14             sub stringify {
15             # uncoverable pod
16 6     6 0 13 my ( $class, $exp ) = @_;
17 6         21 return "at most $exp time(s)";
18             }
19              
20             1;