| 1 | package Zucchini::Types; | ||||||||||
| 2 | 8 | $Zucchini::Types::VERSION = '0.0.21'; | |||||||||
| 3 | { | ||||||||||
| 4 | 8 | $Zucchini::Types::DIST = 'Zucchini'; | |||||||||
| 5 | } | ||||||||||
| 6 | 8 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | # ABSTRACT: Moo type definitions | ||||||||||
| 8 | 8 | ▶ | use MooX::Types::MooseLike::Base; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 8 | ▶ | use base qw(Exporter); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 8 | our @EXPORT_OK = (); | |||||||||
| 11 | my $defs = [ | ||||||||||
| 12 | { | ||||||||||
| 13 | name => 'ZucchiniConfig', | ||||||||||
| 14 | 9 | ▶ | test => sub { ref($_[0]) && 'Zucchini::Config' eq ref($_[0]) }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 15 | 0 | ▶ | message => sub { "$_[0] is not the type we want!" } | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 16 | }, | ||||||||||
| 17 | { | ||||||||||
| 18 | name => 'NetFTP', | ||||||||||
| 19 | 0 | ▶ | test => sub { ref($_[0]) && 'Net::FTP' eq ref($_[0]) }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 20 | 0 | ▶ | message => sub { "$_[0] is not the type we want!" } | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 21 | }, | ||||||||||
| 22 | { | ||||||||||
| 23 | name => 'TemplateToolkit', | ||||||||||
| 24 | 5 | ▶ | test => sub { ref($_[0]) && 'Template' eq ref($_[0]) }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 25 | 0 | ▶ | message => sub { "$_[0] is not the type we want!" } | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 26 | }, | ||||||||||
| 27 | 8 | ]; | |||||||||
| 28 | 8 | MooX::Types::MooseLike::register_types($defs, __PACKAGE__); | |||||||||
| 29 | # optionally add an 'all' tag so one can: | ||||||||||
| 30 | # use MyApp::Types qw/:all/; # to import all types | ||||||||||
| 31 | 8 | our %EXPORT_TAGS = ('all' => \@EXPORT_OK); | |||||||||
| 32 | |||||||||||
| 33 | __END__ | ||||||||||