Finnigan/ScanEventTemplate.pm

filter: Statementstmt 86.6% 26 / 30 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 90.9% 10 / 11 Podpod 100% 6 / 6 totaltotal 89.3% 42 / 47 CC 1 SCAR 0.9
CC
1
Cov
87%
stringify
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« Finnigan/Peak.pm ↑ Summary Finnigan/CASInfo.pm »
1 package Finnigan::ScanEventTemplate;
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 2 ▶use overload ('""' => 'stringify');
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 4 ▶sub decode {
Subroutine decode: called CC=1 SCAR=0.0
Pod documented
13 4 my ($class, $stream, $version) = @_;
14  
15 4 my @fields = (
16 "preamble" => ['object', 'Finnigan::ScanEventPreamble'],
17 "presumed controller type" => ['V', 'UInt32'],
18 "presumed controller number" => ['V', 'UInt32'],
19 "fraction collector" => ['object', 'Finnigan::FractionCollector'],
20 "unknown long[3]" => ['V', 'UInt32'],
21 "unknown long[4]" => ['V', 'UInt32'],
22 "unknown long[5]" => ['V', 'UInt32'],
23 );
24  
25 4 my $self = Finnigan::Decoder->read($stream, \@fields, $version);
26 4 bless $self, $class;
27 4 return $self;
28 }
29  
30 19 ▶sub preamble {
Subroutine preamble: called CC=1 SCAR=0.0
Pod documented
31 19 shift->{data}->{"preamble"}->{value};
32 }
33  
34 1 ▶sub controllerType {
Subroutine controllerType: called CC=1 SCAR=0.0
Pod documented
35 1 shift->{data}->{"presumed controller type"}->{value};
36 }
37  
38 1 ▶sub controllerNumber {
Subroutine controllerNumber: called CC=1 SCAR=0.0
Pod documented
39 1 shift->{data}->{"presumed controller number"}->{value};
40 }
41  
42 3 ▶sub fraction_collector {
Subroutine fraction_collector: called CC=1 SCAR=0.0
Pod documented
43 3 shift->{data}->{"fraction collector"}->{value};
44 }
45  
46  
47 0 ▶sub stringify {
Subroutine stringify: not called CC=1 SCAR=6.9
Pod documented
48 0 my $self = shift;
49  
50 0 my $p = $self->preamble;
51 0 my $f = $self->fraction_collector;
52 0 return "$p $f";
53 }
54  
55  
56 2 1;
57 __END__
« Finnigan/Peak.pm ↑ Summary Finnigan/CASInfo.pm »