blib/lib/DBIx/ReportBuilder/Part/P.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 19 CC 2 SCAR 13.9
CC
2
Cov
0%
Insert
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 4.0
1 # $File: //member/autrijus/DBIx-ReportBuilder/lib/DBIx/ReportBuilder/Part/P.pm $ $Author: autrijus $
2 # $Revision: #4 $ $Change: 7993 $ $DateTime: 2003/09/08 23:40:50 $
3  
4 package DBIx::ReportBuilder::Part::P;
5 use base 'DBIx::ReportBuilder::Part';
6  
7 sub Insert {
8 my $self = shift;
9 my $rv = $self->SUPER::Insert(@_);
10 return $rv if length($self->text);
11  
12 # special case: if we are empty, replace ourselves.
13 $self->delete;
14 return 0;
15 }
16  
17 use constant Inputs => (
18 align => {
19 type => 'radio',
20 choices => [qw/left center right/],
21 default => 'left',
22 },
23 font => {
24 },
25 align => [ qw( align font size border ) ],
26 );
27  
28 1;