| 1 | 25 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 2 | 25 | ▶ | use warnings; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 3 | # ABSTRACT: an infinite tolerance | ||||||||||||||||||||||||||||||||||||||||||
| 4 | |||||||||||||||||||||||||||||||||||||||||||
| 5 | package | ||||||||||||||||||||||||||||||||||||||||||
| 6 | Number::Tolerant::Type::infinite; | ||||||||||||||||||||||||||||||||||||||||||
| 7 | 25 | ▶ | use parent qw(Number::Tolerant::Type); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||||||||||||||||
| 9 | 7 | ▶ | sub construct { shift; { value => 0 } } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
construct: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 10 | |||||||||||||||||||||||||||||||||||||||||||
| 11 | 21 | ▶ | sub parse { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
parse: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 12 | 21 | my ($self, $string, $factory) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 13 | 21 | ▶ | return $factory->new('infinite') if $string =~ m!\Aany\s+number\z!; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 14 | 20 | return; | |||||||||||||||||||||||||||||||||||||||||
| 15 | } | ||||||||||||||||||||||||||||||||||||||||||
| 16 | |||||||||||||||||||||||||||||||||||||||||||
| 17 | 61 | ▶ | sub valid_args { shift; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
valid_args: called CC=4 SCAR=13.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 18 | 61 | ▶ | return ($_[0]) if @_ == 1 and defined $_[0] and $_[0] eq 'infinite'; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%6/6
@_ == 1 and defined $_[0] and $_[0] eq "infinite"
@_ == 1 and defined $_[0]
MC/DC100%3/3
@_ == 1 and defined $_[0] and $_[0] eq "infinite"
@_ == 1
defined $_[0]
$_[0] eq "infinite"
Truth table100%4/4
A and B and C
A= @_ == 1B= defined $_[0]C= $_[0] eq "infinite"
| |||||||||||||||||||||||||||||||||||||||||||
| 19 | 54 | return; | |||||||||||||||||||||||||||||||||||||||||
| 20 | } | ||||||||||||||||||||||||||||||||||||||||||
| 21 | |||||||||||||||||||||||||||||||||||||||||||
| 22 | 25 | 1; | |||||||||||||||||||||||||||||||||||||||||
| 23 | |||||||||||||||||||||||||||||||||||||||||||
| 24 | __END__ | ||||||||||||||||||||||||||||||||||||||||||