Stream/Event/TimeCode.pm

filter: Statementstmt 81.2% 13 / 16 Branchbran n/a Conditioncond 0.0% 0 / 6 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 50.0% 3 / 6 Podpod 100% 2 / 2 totaltotal 52.9% 18 / 34 CC 3 SCAR 12.9
CC
3
Cov
59%
high
6.0
low
6.0
__ANON__
2.0
CRAP 3.6
« Stream/Tables.pm ↑ Summary Stream/Event/SysEx.pm »
1 13 ▶use v5.26;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 13 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 13 ▶use Feature::Compat::Class;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 # ABSTRACT: Time Code Qtr. Frame event class
6  
7  
8 package MIDI::Stream::Event::TimeCode;
9 class MIDI::Stream::Event::TimeCode :isa( MIDI::Stream::Event );
10  
11 13 our $VERSION = '0.005';
12  
13  
14 13 field $byte :reader;
15 13 field $high;
16 13 field $low;
17  
18 method high {
19 0 ▶ $high //= $byte & 0xf0 >> 5;
Subroutine high: not called CC=2 SCAR=17.9
Pod documented
Condition0%0/3
$high //= $byte & 7
l!l&&r!l&&!r
000
MC/DC0%0/2
$high //= $byte & 7
$high $byte & 7
Truth table0%0/3
A //= B
A= $highB= $byte & 7
ABresult
1X1
011
000
20 }
21  
22 method low {
23 0 ▶ $low //= $byte & 0x0f;
Subroutine low: not called CC=2 SCAR=17.9
Pod documented
Condition0%0/3
$low //= $byte & 15
l!l&&r!l&&!r
000
MC/DC0%0/2
$low //= $byte & 15
$low $byte & 15
Truth table0%0/3
A //= B
A= $lowB= $byte & 15
ABresult
1X1
011
000
24 }
25  
26 ADJUST {
27 0 ▶ $byte = $self->message->[ 1 ];
Subroutine __ANON__: not called CC=1 SCAR=6.9
28 }
29  
30 13 1;
31  
32 __END__
« Stream/Tables.pm ↑ Summary Stream/Event/SysEx.pm »