File Coverage

blib/lib/Bio/Phylo/Util/Dependency.pm
Criterion Covered Total %
statement 14 15 93.3
branch n/a
condition n/a
subroutine 5 6 83.3
pod n/a
total 19 21 90.4


line stmt bran cond sub pod time code
1             package Bio::Phylo::Util::Dependency;
2              
3 3     3   17 use strict;
  3         6  
  3         75  
4 3     3   14 use warnings;
  3         7  
  3         97  
5              
6 0         0 BEGIN {
7 3     3   17 use Bio::Phylo::Util::Exceptions 'throw';
  3         5  
  3         110  
8 3     3   16 use Bio::Phylo::Util::CONSTANT 'looks_like_class';
  3     0   6  
  3         235  
9              
10             sub import {
11 3     3   8 my $class = shift;
12 3         31 looks_like_class $_ for @_;
13             }
14             }
15             1;
16             __END__
17              
18             =head1 NAME
19              
20             Bio::Phylo::Util::Dependency - Utility class for importing external
21             dependencies. No serviceable parts inside.
22              
23             =head1 DESCRIPTION
24              
25             This package is for internal usage by Bio::Phylo, to help import optional 3rd
26             party dependencies (and report their absence) in a uniform way.
27              
28             =head1 SEE ALSO
29              
30             There is a mailing list at L<https://groups.google.com/forum/#!forum/bio-phylo>
31             for any user or developer questions and discussions.
32              
33             =over
34              
35             =item L<Bio::Phylo::Manual>
36              
37             Also see the manual: L<Bio::Phylo::Manual> and L<http://rutgervos.blogspot.com>.
38              
39             =back
40              
41             =head1 CITATION
42              
43             If you use Bio::Phylo in published research, please cite it:
44              
45             B<Rutger A Vos>, B<Jason Caravas>, B<Klaas Hartmann>, B<Mark A Jensen>
46             and B<Chase Miller>, 2011. Bio::Phylo - phyloinformatic analysis using Perl.
47             I<BMC Bioinformatics> B<12>:63.
48             L<http://dx.doi.org/10.1186/1471-2105-12-63>
49              
50              
51              
52             =cut