blib/lib/Bio/Gonzales/Graphics/Glyph/colorfulBox.pm untested

filter: Statementstmt 0.0% 0 / 11 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 22 CC 2 SCAR 12.8
CC
2
Cov
0%
fgcolor
6.0
my_description
2.0
BEGIN
2.0
CRAP 3.6
1 package Bio::Gonzales::Graphics::Glyph::colorfulBox;
2 # DAS-compatible package to use for drawing a box
3  
4 use strict;
5 use base qw(Bio::Graphics::Glyph::generic);
6  
7 our $VERSION = '0.058'; # VERSION
8  
9 sub my_description {
10 return <<END;
11 This glyph draws genomic features as rectangles. If the feature
12 contains subfeatures, then the glyph will draw a single solid box that
13 spans all the subfeatures. Features can be named with a label at the
14 top, and annotated with a descriptive string at the bottom.
15 END
16 }
17  
18 sub fgcolor {
19 my $self = shift;
20  
21 my $fgcolor = $self->option('color') || $self->option('fgcolor');
22  
23 $fgcolor = $fgcolor->() if(ref $fgcolor eq 'CODE');
24  
25 }