File Coverage

blib/lib/Test/Mocha/CalledOk/Times.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::Times;
2             # ABSTRACT: Concrete subclass of CalledOk for verifying methods called an exact number of 'times'
3             $Test::Mocha::CalledOk::Times::VERSION = '0.67';
4 13     13   5754 use parent 'Test::Mocha::CalledOk';
  13         4117  
  13         79  
5 13     13   611 use strict;
  13         28  
  13         258  
6 13     13   61 use warnings;
  13         28  
  13         1194  
7              
8             sub is {
9             # uncoverable pod
10 89     89 0 209 my ( $class, $got, $exp ) = @_;
11 89         224 return $got == $exp;
12             }
13              
14             sub stringify {
15             # uncoverable pod
16 89     89 0 188 my ( $class, $exp ) = @_;
17 89         249 return "$exp time(s)";
18             }
19              
20             1;