| blib/lib/MooX/Types/MooseLike/Base.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % | 
| condition | 15 | 18 | 83.3 | 
| line | !l | l&&!r | l&&r | condition | 
|---|---|---|---|---|
| 193 | 1 | 0 | 1 | blessed($_[0]) and $_[0]->isa('IO::Handle') | 
| 0 | 2 | 0 | defined $_[0] and &Scalar::Util::openhandle($_[0]) | |
| 207 | 1 | 5 | 3 | defined $_[0] and blessed($_[0]) | 
| line | l | !l&&r | !l&&!r | condition | 
|---|---|---|---|---|
| 34 | 2 | 1 | 5 | not defined $_[0] or $_[0] eq '' | 
| 3 | 1 | 4 | not defined $_[0] or $_[0] eq '' or "$_[0]" eq '1' | |
| 75 | 7 | 9 | 5 | $val =~ /\A[+-]?[0-9]+\z/ or $val =~ /\A(?:[+-]?) # matches optional +- in the beginning (?=[0-9]|\.[0-9]) # matches previous +- only if there is something like 3 or .3 [0-9]* # matches 0-9 zero or more times (?:\.[0-9]+)? # matches optional .89 or nothing (?:[Ee](?:[+-]?[0-9]+))? # matches E1 or e1 or e-1 or e+1 etc \z/x |