Encoded/Coder/Base.pm

filter: Statementstmt 68.1% 15 / 22 Branchbran 75.0% 6 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 5 / 10 Podpod 87.5% 7 / 8 totaltotal 68.7% 33 / 48 CC 5 SCAR 8.3
CC
5
Cov
70%
decode_check_value
3.3
encode_check_value
3.0
upgrade
2.0
CRAP 2.3
« Encoded/Coder/Encode.pm ↑ Summary
1 package Text::CSV::Encoded::Coder::Base;
2 11 $Text::CSV::Encoded::Coder::Base::VERSION = '0.25';
3 # VERSION
4  
5 11 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 11 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 10 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
9 10 my $class = shift;
10 10 my %opt = @_;
11 10 bless { %opt }, $class;
12 }
13  
14  
15 0 ▶sub upgrade { 0; }
Subroutine upgrade: not called CC=1 SCAR=6.9
Pod documented
16  
17  
18 0 ▶sub encode {
Subroutine encode: not called CC=1 SCAR=6.9
Pod documented
19 0 my ( $self, $encoding, $str ) = @_;
20 0 $str;
21 }
22  
23  
24 0 ▶sub decode {
Subroutine decode: not called CC=1 SCAR=6.9
Pod documented
25 0 my ( $self, $encoding, $str ) = @_;
26 0 $str;
27 }
28  
29  
30 0 ▶sub decode_fields_ref {
Subroutine decode_fields_ref: not called CC=1 SCAR=6.9
Pod documented
31 0 my ( $self, $encoding, $arrayref ) = @_;
32 }
33  
34  
35 0 ▶sub encode_fields_ref {
Subroutine encode_fields_ref: not called CC=1 SCAR=6.9
Pod documented
36 0 my ( $self, $encoding, $arrayref ) = @_;
37 }
38  
39  
40 80 ▶sub encode_check_value {
Subroutine encode_check_value: called CC=3 SCAR=11.0
Pod documented
41 80 ▶ $_[0]->{ encode_check_value } = $_[1] if @_ > 1;
Branch: 1 branch
BranchTrueFalseTotal
if @_ > 1 1 79 80
42 80 ▶ $_[0]->{ encode_check_value } || 0;
Branch: 1 branch
BranchTrueFalseTotal
$_[0]{"encode_check_value"} or 0 2 78 80
43 }
44  
45  
46 62 ▶sub decode_check_value {
Subroutine decode_check_value: called CC=3 SCAR=12.0
Pod documented
47 62 ▶ $_[0]->{ decode_check_value } = $_[1] if @_ > 1;
Branch: 1 branch
BranchTrueFalseTotal
if @_ > 1 0 62 62
48 62 ▶ $_[0]->{ decode_check_value } || 0;
Branch: 1 branch
BranchTrueFalseTotal
$_[0]{"decode_check_value"} or 0 0 62 62
49 }
50  
51  
52 11 1;
53 __END__
« Encoded/Coder/Encode.pm ↑ Summary