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

# File Coverage

File: | blib/lib/Test/Mocha/CalledOk/Times.pm
Coverage: | 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.61';
4 | 12 12 12 |  |  | 12 |  | 3502 1834 32 | use parent 'Test::Mocha::CalledOk';
5 | 12 12 12 |  |  | 12 |  | 275 11 145 | use strict;
6 | 12 12 12 |  |  | 12 |  | 20 8 543 | use warnings;
7 |
8 |  |  |  |  |  |  | sub is {
9 |  |  |  |  |  |  | # uncoverable pod
10 | 79 |  |  | 79 | 0 | 48 | my ( $class, $got, $exp ) = @_;
11 | 79 |  |  |  |  | 97 | return $got == $exp;
12 |  |  |  |  |  |  | }
13 |
14 |  |  |  |  |  |  | sub stringify {
15 |  |  |  |  |  |  | # uncoverable pod
16 | 79 |  |  | 79 | 0 | 48 | my ( $class, $exp ) = @_;
17 | 79 |  |  |  |  | 116 | return "$exp time(s)";
18 |  |  |  |  |  |  | }
19 |
20 |  |  |  |  |  |  | 1;