File Coverage

File:blib/lib/Test/Mocha/CalledOk/Times.pm
Coverage:100.0%

linestmtbrancondsubpodtimecode
1package 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.61';
4
24
24
24
7029
3747
68
use parent 'Test::Mocha::CalledOk';
5
24
24
24
562
18
291
use strict;
6
24
24
24
42
17
1089
use warnings;
7
8sub is {
9    # uncoverable pod
10
158
0
118
    my ( $class, $got, $exp ) = @_;
11
158
203
    return $got == $exp;
12}
13
14sub stringify {
15    # uncoverable pod
16
158
0
106
    my ( $class, $exp ) = @_;
17
158
225
    return "$exp time(s)";
18}
19
201;