Tiny/Types.pm

filter: Statementstmt 100% 30 / 30 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod n/a totaltotal 100% 38 / 38 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Tiny/SwingFills.pm ↑ Summary
1 package MIDI::Drummer::Tiny::Types;
2 7 $MIDI::Drummer::Tiny::Types::VERSION = '0.7102';
3 7 our $AUTHORITY = 'cpan:GENE';
4  
5 # ABSTRACT: Type library for MIDI::Drummer::Tiny
6  
7 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 7 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 use Type::Library
11 7 ▶ -extends => [ qw(
Subroutine BEGIN: called CC=1 SCAR=0.0
12 Types::MIDI
13 Types::Music
14 Types::Common::String
15 ) ],
16 -declare => qw(
17 Duration
18 MIDI_File
19 Soundfont_File
20 7 );
21 7 ▶use Type::Utils -all;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 7 ▶use Types::Standard qw(FileHandle);
Subroutine BEGIN: called CC=1 SCAR=0.0
23 7 ▶use Types::Path::Tiny qw(File Path);
Subroutine BEGIN: called CC=1 SCAR=0.0
24  
25 7 ▶use MIDI::Util qw(midi_dump);
Subroutine BEGIN: called CC=1 SCAR=0.0
26  
27 #pod =type Duration
28 #pod
29 #pod A L<non-empty string|Types::Common::String/Types> corresponding to
30 #pod a L<duration in MIDI::Simple|MIDI::Simple/"Parameters for n/r/noop">.
31 #pod
32 #pod =cut
33  
34 7 my %length = %{ midi_dump('length') };
35 416 ▶declare Duration, as NonEmptyStr, where { exists $length{$_} };
Subroutine __ANON__: called CC=1 SCAR=0.0
36  
37 #pod =type MIDI_File
38 #pod
39 #pod The name of the MIDI file to be written.
40 #pod
41 #pod =cut
42  
43 7 declare MIDI_File, as NonEmptyStr | Path | FileHandle;
44  
45 #pod =type Soundfont_File
46 #pod
47 #pod The name of the MIDI soundfont file to use.
48 #pod
49 #pod =cut
50  
51 7 declare Soundfont_File, as NonEmptyStr | File;
52  
53 7 1;
54  
55 __END__
« Tiny/SwingFills.pm ↑ Summary