| 1 | package Test::Chado::Types; | ||
| 2 | { | ||
| 3 | 14 | $Test::Chado::Types::VERSION = 'v4.1.1'; | |
| 4 | } | ||
| 5 | |||
| 6 | use Type::Library | ||
| 7 | 14 | ▶ | -base, |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | -declare => qw(DBH DbManager BCS Twig Graph GraphT | ||
| 9 | HashiFied FixtureManager FixtureLoader DBIC | ||
| 10 | 14 | MaybeFixtureLoader MaybeDbManager TB TD1 TD2); | |
| 11 | 14 | ▶ | use Type::Utils; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 14 | ▶ | use Types::Standard qw/Maybe/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | 14 | class_type DBH, | |
| 15 | { class => "DBI::db" }; | ||
| 16 | 14 | class_type DBIC, { class => "DBIx::Class::Schema" }; | |
| 17 | 14 | class_type Twig, { class => "XML::Twig" }; | |
| 18 | 14 | class_type Graph, { class => "Graph" }; | |
| 19 | 14 | class_type GraphT, { class => "Graph::Traversal" }; | |
| 20 | 14 | class_type BCS, { class => "Bio::Chado::Schema" }; | |
| 21 | 14 | class_type FixtureManager, | |
| 22 | { class => "Test::Chado::FixtureManager::Flatfile" }; | ||
| 23 | 14 | class_type HashiFied, { class => "Data::Perl::Collection::Hash" }; | |
| 24 | 14 | class_type TD1, { class => "Test::Builder" }; | |
| 25 | 14 | class_type TD2, { class => "Test::Tester::Delegate" }; | |
| 26 | 14 | union( TB => [ TD1, TD2 ] ); | |
| 27 | 14 | role_type DbManager, { role => 'Test::Chado::Role::HasDBManager' }; | |
| 28 | 14 | role_type FixtureLoader, { role => 'Test::Chado::Role::Helper::WithBcs' }; | |
| 29 | 14 | declare MaybeFixtureLoader, as Maybe [FixtureLoader]; | |
| 30 | 14 | declare MaybeDbManager, as Maybe [DbManager]; | |
| 31 | |||
| 32 | 14 | 1; | |
| 33 | |||
| 34 | __END__ | ||