Finnigan/Error.pm

filter: Statementstmt 70.0% 14 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 57.1% 4 / 7 Podpod 100% 3 / 3 totaltotal 70.0% 21 / 30 CC 1 SCAR 3.6
CC
1
Cov
70%
decode
2.0
time
2.0
message
2.0
CRAP 1.4
« Finnigan/RawFileInfoPreamble.pm ↑ Summary Finnigan/FileHeader.pm »
1 package Finnigan::Error;
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 0 ▶sub decode {
Subroutine decode: not called CC=1 SCAR=6.9
Pod documented
12 0 my ($class, $stream, $layout) = @_;
13  
14 0 my $fields = [
15 "time" => ['f<', 'Float32'],
16 "message" => ['varstr', 'PascalStringWin32'],
17 ];
18  
19 0 my $self = bless Finnigan::Decoder->read($stream, $fields), $class;
20 0 return $self;
21 }
22  
23 0 ▶sub time {
Subroutine time: not called CC=1 SCAR=6.9
Pod documented
24 0 shift->{data}->{"time"}->{value};
25 }
26  
27 0 ▶sub message {
Subroutine message: not called CC=1 SCAR=6.9
Pod documented
28 0 shift->{data}->{"message"}->{value};
29 }
30  
31 2 1;
32 __END__
« Finnigan/RawFileInfoPreamble.pm ↑ Summary Finnigan/FileHeader.pm »