| 1 | package Spreadsheet::Reader::Format::Types; | ||||||||||||||||||||||||||||
| 2 | 3 | our $AUTHORITY = 'cpan:JANDREW'; | |||||||||||||||||||||||||||
| 3 | 3 | ▶ | use version; our $VERSION = version->declare('v0.6.4'); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | #~ use Log::Shiras::Unhide qw( :debug ); | ||||||||||||||||||||||||||||
| 5 | ###LogSD warn "You uncovered internal logging statements for Spreadsheet::Reader::Format::Types-$VERSION"; | ||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||
| 7 | 3 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 8 | 3 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 9 | 3 | ▶ | use Type::Utils -all; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 10 | 3 | ▶ | use Type::Library 1.000 | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 11 | 3 | -base, | |||||||||||||||||||||||||||
| 12 | -declare => qw( | ||||||||||||||||||||||||||||
| 13 | NegativeNum ZeroOrUndef NotNegativeNum | ||||||||||||||||||||||||||||
| 14 | PositiveNum Excel_number_0 | ||||||||||||||||||||||||||||
| 15 | 3 | );# | |||||||||||||||||||||||||||
| 16 | 3 | ▶ | use IO::File; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 17 | 3 | ▶ | BEGIN{ extends "Types::Standard" }; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 18 | my $try_xs = | ||||||||||||||||||||||||||||
| 19 | exists($ENV{PERL_TYPE_TINY_XS}) ? !!$ENV{PERL_TYPE_TINY_XS} : | ||||||||||||||||||||||||||||
| 20 | exists($ENV{PERL_ONLY}) ? !$ENV{PERL_ONLY} : | ||||||||||||||||||||||||||||
| 21 | 3 | ▶ | 1; | ||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||
| 22 | 3 | ▶ | if( $try_xs and exists $INC{'Type/Tiny/XS.pm'} ){ | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$try_xs and exists $INC{"Type/Tiny/XS.pm"}
MC/DC0%0/2
$try_xs and exists $INC{"Type/Tiny/XS.pm"}
$try_xs
exists $INC{"Type/Tiny/XS.pm"}
Truth table33%1/3
A and B
A= $try_xsB= exists $INC{"Type/Tiny/XS.pm"}
| |||||||||||||||||||||||||||||
| 23 | 0 | eval "use Type::Tiny::XS 0.010"; | |||||||||||||||||||||||||||
| 24 | 0 | ▶ | if( $@ ){ | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 25 | 0 | die "You have loaded Type::Tiny::XS but versions prior to 0.010 will cause this module to fail"; | |||||||||||||||||||||||||||
| 26 | } | ||||||||||||||||||||||||||||
| 27 | } | ||||||||||||||||||||||||||||
| 28 | |||||||||||||||||||||||||||||
| 29 | #########1 Package Variables 3#########4#########5#########6#########7#########8#########9 | ||||||||||||||||||||||||||||
| 30 | |||||||||||||||||||||||||||||
| 31 | |||||||||||||||||||||||||||||
| 32 | |||||||||||||||||||||||||||||
| 33 | #########1 Type Library 3#########4#########5#########6#########7#########8#########9 | ||||||||||||||||||||||||||||
| 34 | |||||||||||||||||||||||||||||
| 35 | declare PositiveNum, | ||||||||||||||||||||||||||||
| 36 | as Num, | ||||||||||||||||||||||||||||
| 37 | 60 | ▶ | where{ $_ > 0 }; | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 38 | |||||||||||||||||||||||||||||
| 39 | declare NegativeNum, | ||||||||||||||||||||||||||||
| 40 | as Num, | ||||||||||||||||||||||||||||
| 41 | 77 | ▶ | where{ $_ < 0 }; | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 42 | |||||||||||||||||||||||||||||
| 43 | declare ZeroOrUndef, | ||||||||||||||||||||||||||||
| 44 | as Maybe[Num], | ||||||||||||||||||||||||||||
| 45 | 3 | ▶ | where{ !$_ }; | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 46 | |||||||||||||||||||||||||||||
| 47 | declare NotNegativeNum, | ||||||||||||||||||||||||||||
| 48 | as Num, | ||||||||||||||||||||||||||||
| 49 | 119 | ▶ | where{ $_ > -1 }; | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 50 | |||||||||||||||||||||||||||||
| 51 | |||||||||||||||||||||||||||||
| 52 | #########1 Excel Defined Converions 4#########5#########6#########7#########8#########9 | ||||||||||||||||||||||||||||
| 53 | |||||||||||||||||||||||||||||
| 54 | declare_coercion Excel_number_0, | ||||||||||||||||||||||||||||
| 55 | to_type Any, from Maybe[Any], | ||||||||||||||||||||||||||||
| 56 | 0 | ▶ | via{ $_ }; | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||||||||||||||||||||
| 57 | |||||||||||||||||||||||||||||
| 58 | #########1 Public Attributes 3#########4#########5#########6#########7#########8#########9 | ||||||||||||||||||||||||||||
| 59 | |||||||||||||||||||||||||||||
| 60 | |||||||||||||||||||||||||||||
| 61 | |||||||||||||||||||||||||||||
| 62 | #########1 Private Methods 3#########4#########5#########6#########7#########8#########9 | ||||||||||||||||||||||||||||
| 63 | |||||||||||||||||||||||||||||
| 64 | |||||||||||||||||||||||||||||
| 65 | #########1 Phinish 3#########4#########5#########6#########7#########8#########9 | ||||||||||||||||||||||||||||
| 66 | |||||||||||||||||||||||||||||
| 67 | 3 | __PACKAGE__->meta->make_immutable; | |||||||||||||||||||||||||||
| 68 | 3 | 1; | |||||||||||||||||||||||||||
| 69 | |||||||||||||||||||||||||||||
| 70 | #########1 Documentation 3#########4#########5#########6#########7#########8#########9 | ||||||||||||||||||||||||||||
| 71 | __END__ | ||||||||||||||||||||||||||||