| 1 | package Test::Chado::FixtureManager::Flatfile; | ||
| 2 | { | ||
| 3 | 3 | $Test::Chado::FixtureManager::Flatfile::VERSION = 'v4.1.1'; | |
| 4 | } | ||
| 5 | 3 | ▶ | use File::ShareDir qw/module_dir/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 3 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 3 | ▶ | use MooX::late; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 3 | ▶ | use Types::Standard qw/Str/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 3 | ▶ | use Carp; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 3 | ▶ | use File::Spec::Functions; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 3 | ▶ | use Test::Chado; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | has 'default_fixture_path' => ( | ||
| 14 | is => 'ro', | ||
| 15 | isa => Str, | ||
| 16 | lazy => 1, | ||
| 17 | 1 | ▶ | default => sub { return catfile( module_dir('Test::Chado') ) } |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 18 | 3 | ); | |
| 19 | |||
| 20 | has 'fixture_path' => ( | ||
| 21 | is => 'rw', | ||
| 22 | isa => Str, | ||
| 23 | lazy => 1, | ||
| 24 | 1 | ▶ | default => sub { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 25 | 1 | my $self = shift; | |
| 26 | 1 | return $self->default_fixture_path; | |
| 27 | } | ||
| 28 | 3 | ); | |
| 29 | |||
| 30 | has 'organism_fixture' => ( | ||
| 31 | is => 'rw', | ||
| 32 | isa => Str, | ||
| 33 | lazy => 1, | ||
| 34 | 1 | ▶ | default => sub { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 35 | 1 | my $self = shift; | |
| 36 | 1 | return catfile( $self->default_fixture_path, 'organism.yaml' ); | |
| 37 | } | ||
| 38 | 3 | ); | |
| 39 | |||
| 40 | has 'rel_fixture' => ( | ||
| 41 | is => 'rw', | ||
| 42 | isa => Str, | ||
| 43 | lazy => 1, | ||
| 44 | 1 | ▶ | default => sub { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 45 | 1 | my $self = shift; | |
| 46 | 1 | return catfile( $self->default_fixture_path, 'relationship.obo_xml' ); | |
| 47 | } | ||
| 48 | 3 | ); | |
| 49 | |||
| 50 | has 'so_fixture' => ( | ||
| 51 | is => 'rw', | ||
| 52 | isa => Str, | ||
| 53 | lazy => 1, | ||
| 54 | 1 | ▶ | default => sub { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 55 | 1 | my $self = shift; | |
| 56 | 1 | return catfile( $self->default_fixture_path, 'sofa.obo_xml' ); | |
| 57 | } | ||
| 58 | 3 | ); | |
| 59 | |||
| 60 | 3 | 1; | |
| 61 | |||
| 62 | __END__ | ||