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
44
44
44
114
33
810
use strict;
5
44
44
44
91
32
580
use warnings;
6
44
44
44
13963
7222
158
use parent 'Test::Mocha::CalledOk';
7
8sub is {
9    # uncoverable pod
10
314
0
209
    my ( $class, $got, $exp ) = @_;
11
314
402
    return $got == $exp;
12}
13
14sub stringify {
15    # uncoverable pod
16
314
0
199
    my ( $class, $exp ) = @_;
17
314
443
    return "$exp time(s)";
18}
19
201;