Stream/Event/SysEx.pm

filter: Statementstmt 87.5% 14 / 16 Branchbran 50.0% 1 / 2 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 80.0% 4 / 5 Podpod 100% 1 / 1 totaltotal 74.0% 20 / 27 CC 3 SCAR 10.1
CC
3
Cov
75%
msg_str
6.0
__ANON__
2.1
BEGIN
1.0
CRAP 2.7
« Stream/Event/TimeCode.pm ↑ Summary Stream/Event.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: SysEx event class
6  
7 package MIDI::Stream::Event::SysEx;
8 class MIDI::Stream::Event::SysEx :isa( MIDI::Stream::Event );
9  
10  
11 13 our $VERSION = '0.006';
12  
13  
14 13 field $msg_str;
15 13 field $msg :reader = [];
16  
17 0 ▶method msg_str {
Subroutine msg_str: not called CC=2 SCAR=17.9
Pod documented
18 0 ▶ $msg_str //= join '', map { chr } $msg->@*;
Condition0%0/2
$msg_str //= join("", map({chr $_;} @$msg))
l!l
00
MC/DC0%0/1
$msg_str //= join("", map({chr $_;} @$msg))
$msg_str
Truth table0%0/2
A
A= $msg_str
Aresult
11
00
19 }
20  
21 4 ▶ADJUST {
Subroutine __ANON__: called CC=2 SCAR=7.2
22 4 ( undef, $msg->@* ) = $self->message->@*;
23 4 ▶ delete $msg->[ -1 ] if $msg->[ -1 ] == 0xf7;
Branch: 1 branch
BranchTrueFalseTotal
if $msg->[-1] == 247 0 4 4
24 }
25  
26 13 1;
27  
28 __END__
« Stream/Event/TimeCode.pm ↑ Summary Stream/Event.pm »