File Coverage

blib/lib/Bio/PhyloXS/Identifiable.pm
Criterion Covered Total %
statement 4 17 23.5
branch n/a
condition n/a
subroutine 2 4 50.0
pod 0 2 0.0
total 6 23 26.0


line stmt bran cond sub pod time code
1             ## This file generated by InlineX::C2XS (version 0.25) using Inline::C (version 0.78)
2             package Bio::PhyloXS::Identifiable;
3              
4             require Exporter;
5             *import = \&Exporter::import;
6             require DynaLoader;
7              
8             our $VERSION = 'v0.1.0';
9             $VERSION = eval $VERSION;
10             DynaLoader::bootstrap Bio::PhyloXS::Identifiable $VERSION;
11              
12             @Bio::PhyloXS::Identifiable::EXPORT = ();
13             @Bio::PhyloXS::Identifiable::EXPORT_OK = ();
14              
15 1     1 0 122 sub dl_load_flags {0} # Prevent DynaLoader from complaining and croaking
16 1     1   7 use Carp;
  1         1  
  1         167  
17              
18             sub new {
19 0     0 0   my $class = shift;
20 0           my $self = $class->create;
21 0           my %args = @_;
22 0           for my $key ( keys %args ) {
23 0           my $method = $key;
24 0           $method =~ s/^-/set_/;
25 0           $self->$method($args{$key});
26             }
27 0           return $self;
28             }
29              
30             sub DESTROY {
31 0     0     my $self = shift;
32 0           my $class = ref $self;
33 0           $class =~ s/.+://;
34 0           my $destructor = 'destroy_' . lc $class;
35 0           $self->$destructor;
36             }
37              
38             __PACKAGE__;