Stream/Event/TimeCode.pm

filter: Statementstmt 81.2% 13 / 16 Branchbran n/a Conditioncond 0.0% 0 / 4 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 50.0% 3 / 6 Podpod 100% 2 / 2 totaltotal 60.0% 18 / 30 CC 3 SCAR 12.9
CC
3
Cov
65%
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.006';
12  
13  
14 13 field $byte :reader;
15 13 field $high;
16 13 field $low;
17  
18 0 ▶method high {
Subroutine high: not called CC=2 SCAR=17.9
Pod documented
19 0 ▶ $high //= $byte & 0xf0 >> 5;
Condition0%0/2
$high //= $byte & 7
l!l
00
MC/DC0%0/1
$high //= $byte & 7
$high
Truth table0%0/2
A
A= $high
Aresult
11
00
20 }
21  
22 0 ▶method low {
Subroutine low: not called CC=2 SCAR=17.9
Pod documented
23 0 ▶ $low //= $byte & 0x0f;
Condition0%0/2
$low //= $byte & 15
l!l
00
MC/DC0%0/1
$low //= $byte & 15
$low
Truth table0%0/2
A
A= $low
Aresult
11
00
24 }
25  
26 0 ▶ADJUST {
Subroutine __ANON__: not called CC=1 SCAR=6.9
27 0 $byte = $self->message->[ 1 ];
28 }
29  
30 13 1;
31  
32 __END__
« Stream/Tables.pm ↑ Summary Stream/Event/SysEx.pm »