File: | blib/lib/Test/Mocha/CalledOk/AtLeast.pm |
Coverage: | 100.0% |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Test::Mocha::CalledOk::AtLeast; | ||||||
2 | # ABSTRACT: Concrete subclass of CalledOk for verifying methods called 'atleast' number of times | ||||||
3 | $Test::Mocha::CalledOk::AtLeast::VERSION = '0.61'; | ||||||
4 | 12 12 12 | 29 10 25 | use parent 'Test::Mocha::CalledOk'; | ||||
5 | 12 12 12 | 380 7 163 | use strict; | ||||
6 | 12 12 12 | 25 6 642 | use warnings; | ||||
7 | |||||||
8 | sub is { | ||||||
9 | # uncoverable pod | ||||||
10 | 3 | 0 | 3 | my ( $class, $got, $exp ) = @_; | |||
11 | 3 | 4 | return $got >= $exp; | ||||
12 | } | ||||||
13 | |||||||
14 | sub stringify { | ||||||
15 | # uncoverable pod | ||||||
16 | 3 | 0 | 3 | my ( $class, $exp ) = @_; | |||
17 | 3 | 6 | return "at least $exp time(s)"; | ||||
18 | } | ||||||
19 | |||||||
20 | 1; |