Finnigan/PacketHeader.pm

filter: Statementstmt 100% 26 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 13 / 13 Podpod 100% 9 / 9 totaltotal 100% 48 / 48 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Finnigan/OLE2Header.pm ↑ Summary Finnigan/RawFileInfo.pm »
1 package Finnigan::PacketHeader;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings FATAL => qw( all );
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 our $VERSION = 0.0206;
6  
7 2 ▶use Finnigan;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 2 ▶use base 'Finnigan::Decoder';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10  
11 2 ▶sub decode {
Subroutine decode: called CC=1 SCAR=0.0
Pod documented
12 2 my ($class, $stream) = @_;
13  
14 2 my $fields = [
15 "unknown long[1]" => ['V', 'UInt32'],
16 "profile size" => ['V', 'UInt32'],
17 "peak list size" => ['V', 'UInt32'],
18 "layout" => ['V', 'UInt32'],
19 "descriptor list size" => ['V', 'UInt32'],
20 "size of unknown stream" => ['V', 'UInt32'],
21 "size of triplet stream" => ['V', 'UInt32'],
22 "unknown long[2]" => ['V', 'UInt32'],
23 "low mz" => ['f<', 'Float32'],
24 "high mz" => ['f<', 'Float32'],
25 ];
26  
27 2 my $self = Finnigan::Decoder->read($stream, $fields);
28  
29 2 return bless $self, $class;
30 }
31  
32 2 ▶sub profile_size {
Subroutine profile_size: called CC=1 SCAR=0.0
Pod documented
33 2 shift->{data}->{"profile size"}->{value};
34 }
35  
36 1 ▶sub peak_list_size {
Subroutine peak_list_size: called CC=1 SCAR=0.0
Pod documented
37 1 shift->{data}->{"peak list size"}->{value};
38 }
39  
40 2 ▶sub layout {
Subroutine layout: called CC=1 SCAR=0.0
Pod documented
41 2 shift->{data}->{"layout"}->{value};
42 }
43  
44 1 ▶sub descriptor_list_size {
Subroutine descriptor_list_size: called CC=1 SCAR=0.0
Pod documented
45 1 shift->{data}->{"descriptor list size"}->{value};
46 }
47  
48 1 ▶sub size_of_unknown_stream {
Subroutine size_of_unknown_stream: called CC=1 SCAR=0.0
Pod documented
49 1 shift->{data}->{"size of unknown stream"}->{value};
50 }
51  
52 1 ▶sub size_of_triplet_stream {
Subroutine size_of_triplet_stream: called CC=1 SCAR=0.0
Pod documented
53 1 shift->{data}->{"size of triplet stream"}->{value};
54 }
55  
56 1 ▶sub low_mz {
Subroutine low_mz: called CC=1 SCAR=0.0
Pod documented
57 1 shift->{data}->{"low mz"}->{value};
58 }
59  
60 1 ▶sub high_mz {
Subroutine high_mz: called CC=1 SCAR=0.0
Pod documented
61 1 shift->{data}->{"high mz"}->{value};
62 }
63  
64  
65 2 1;
66 __END__
« Finnigan/OLE2Header.pm ↑ Summary Finnigan/RawFileInfo.pm »