IO/SequenceFile/BytesWriteable.pm

filter: Statementstmt 76.4% 13 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod 100% 2 / 2 totaltotal 76.0% 19 / 25 CC 1 SCAR 2.9
CC
1
Cov
76%
class_name
2.0
encode
2.0
BEGIN
1.0
CRAP 1.3
« IO/TypedBytes.pm ↑ Summary IO.pm »
1 package Hadoop::IO::SequenceFile::BytesWriteable;
2 1 $Hadoop::IO::SequenceFile::BytesWriteable::VERSION = '0.003';
3 1 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7  
8 1 ▶use constant {
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 CLASS_NAME => "org.apache.hadoop.io.BytesWritable",
10 1 };
11  
12  
13 0 ▶sub class_name { CLASS_NAME }
Subroutine class_name: not called CC=1 SCAR=6.9
Pod documented
14  
15  
16 0 ▶sub encode {
Subroutine encode: not called CC=1 SCAR=6.9
Pod documented
17 0 my ($self, $data) = @_;
18 0 my $len = pack "L>", length $data;
19 0 return $len . $data;
20 }
21  
22  
23 1 1;
24  
25 __END__
« IO/TypedBytes.pm ↑ Summary IO.pm »