GenOO/GeneCollection/Factory.pm untested

filter: Statementstmt 0.0% 0 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 7 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # POD documentation - main docs before the code
2  
3 =head1 NAME
4  
5 GenOO::GeneCollection::Factory - Factory for creating L<GenOO::RegionCollection> objects
6  
7 =head1 SYNOPSIS
8  
9 # It returns the requested factory implementation
10  
11 my $implementation = GenOO::GeneCollection::Factory->create('Implementation',
12 {
13 ARGUMENT_FOR_IMPLEMENTATION => undef
14 }
15 );
16
17 =head1 DESCRIPTION
18  
19 It helps to encapsulate the actual factories that handle the creation of the requested objects
20  
21 =head1 EXAMPLES
22  
23 # Create a GFF implementation
24 my $gff_implementation = GenOO::GeneCollection::Factory->create('GFF',
25 {
26 file => 'sample.gff'
27 }
28 );
29
30 my $bed_implementation = GenOO::GeneCollection::Factory->create('BED',
31 {
32 file => 'sample.bed'
33 }
34 );
35  
36 =cut
37  
38 # Let the code begin...
39  
40 package GenOO::GeneCollection::Factory;
41 $GenOO::GeneCollection::Factory::VERSION = '1.5.0';
42 use MooseX::AbstractFactory;
43  
44 # Role that the implementations should implement
45 implementation_does [ qw( GenOO::RegionCollection::Factory::Requires ) ];
46  
47 1;