blib/lib/Froody/Argument/CSV.pm

filter: Statementstmt 100% 14 / 14 Branchbran 75.0% 3 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 2 / 2 totaltotal 96.0% 24 / 25 CC 3 SCAR 6.3
CC
3
Cov
94%
process
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.9
« blib/lib/Froody/Server/CGI.pm ↑ Summary mbk/Module/Build/Kwalitee.pm »
1 package Froody::Argument::CSV;
2  
3 18 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 18 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 18 ▶use base 'Froody::Argument';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 17 ▶sub type { 'csv' }
Subroutine type: called CC=1 SCAR=0.0
Pod documented
9  
10 3 ▶sub process {
Subroutine process: called CC=3 SCAR=11.1
Pod documented
11 3 my ($class, $param, $check) = @_;
12 3 ▶ Carp::cluck unless defined $param;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $param 0 3 3
13 3 ▶ return ref($param) eq 'ARRAY' ? $param : [ split(/\s*,\s*/, $param) ];
Branch: 1 branch
BranchTrueFalseTotal
ref $param eq 'ARRAY' ? : 1 2 3
14 }
15  
16 18 1;
17  
18 =head1 NAME
19  
20 Froody::Argument::CSV - Froody argument type handler for comma seperated value records
21  
22 =head1 AUTHORS
23  
24 Copyright Fotango 2006. All rights reserved.
25  
26 Please see the main L<Froody> documentation for details of who has worked
27 on this project.
28  
29 This module is free software; you can redistribute it and/or modify it under
30 the same terms as Perl itself.
31  
32 =cut
« blib/lib/Froody/Server/CGI.pm ↑ Summary mbk/Module/Build/Kwalitee.pm »