ODS/Table/Column/String.pm

filter: Statementstmt 90.9% 10 / 11 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 82.3% 14 / 17 CC 2 SCAR 4.9
CC
2
Cov
85%
validation
2.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.6
« ODS/Table/Generate/Data.pm ↑ Summary ODS.pm »
1 package ODS::Table::Column::String;
2  
3 72 ▶use YAOO;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 72 extends 'ODS::Table::Column::Base';
6  
7 72 ▶use ODS::Utils qw/error/;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 sub validation {
10 34453 ▶ if (ref($_[1])) {
Subroutine validation: called CC=2 SCAR=8.1
Pod undocumented
Branch: 1 branch
BranchTrueFalseTotal
if (ref $_[1]) 0 34453 34453
11 0 croak sprintf "The value passed to the %s column does not match the integer constraint.",
12 $_[0]->name;
13 }
14 34453 return $_[1];
15 }
16  
17 #sub inflation { return $_[1]; }
18  
19 #sub deflation { return $_[1]; }
20  
21 #sub coercion { return $_[1]; }
22  
23 72 1;
24  
25 __END__
« ODS/Table/Generate/Data.pm ↑ Summary ODS.pm »