blib/lib/MIDI/RtController/Filter.pm

filter: Statementstmt 96.7% 30 / 31 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 90.0% 9 / 10 Podpod n/a totaltotal 90.7% 39 / 43 CC 2 SCAR 6.5
CC
2
Cov
91%
__ANON__
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.9
↑ Summary
1 package MIDI::RtController::Filter;
2 2 our $AUTHORITY = 'cpan:GENE';
3  
4 # ABSTRACT: Parent class of RtController filters
5  
6 2 our $VERSION = '0.0102';
7  
8 2 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 ▶use strictures 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 2 ▶use Types::Standard qw(Bool Maybe);
Subroutine BEGIN: called CC=1 SCAR=0.0
11 2 ▶use Types::MIDI qw(Channel Velocity);
Subroutine BEGIN: called CC=1 SCAR=0.0
12 2 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14  
15 has rtc => (
16 is => 'ro',
17 0 ▶ isa => sub { die 'Invalid controller' unless ref($_[0]) eq 'MIDI::RtController' },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
unless ref $_[0] eq "MIDI::RtController" 0 0 0
18 2 );
19  
20  
21 has channel => (
22 is => 'rw',
23 isa => Channel,
24 1 ▶ default => sub { 0 },
Subroutine __ANON__: called CC=1 SCAR=0.0
25 2 );
26  
27  
28 has value => (
29 is => 'rw',
30 isa => Maybe[Velocity],
31 1 ▶ default => sub { undef },
Subroutine __ANON__: called CC=1 SCAR=0.0
32 2 );
33  
34  
35 has trigger => (
36 is => 'rw',
37 isa => Maybe[Velocity],
38 1 ▶ default => sub { undef },
Subroutine __ANON__: called CC=1 SCAR=0.0
39 2 );
40  
41  
42 2 has running => (
43 is => 'rw',
44 isa => Bool,
45 default => 0,
46 );
47  
48  
49 2 has halt => (
50 is => 'rw',
51 isa => Bool,
52 default => 0,
53 );
54  
55  
56 2 has continue => (
57 is => 'rw',
58 isa => Bool,
59 default => 0,
60 );
61  
62  
63 has verbose => (
64 is => 'rw',
65 isa => Bool,
66 1 ▶ default => sub { 0 },
Subroutine __ANON__: called CC=1 SCAR=0.0
67 2 );
68  
69 2 1;
70  
71 __END__
↑ Summary