File Coverage

blib/lib/MIDI/Stream/Event/SongPosition.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 15 15 100.0


line stmt bran cond sub pod time code
1 13     13   192 use v5.26;
  13         52  
2 13     13   69 use warnings;
  13         25  
  13         646  
3 13     13   73 use Feature::Compat::Class;
  13         26  
  13         85  
4              
5             # ABSTRACT: Song Position event class
6              
7              
8             package MIDI::Stream::Event::SongPosition;
9             class MIDI::Stream::Event::SongPosition :isa( MIDI::Stream::Event );
10              
11             our $VERSION = '0.005';
12              
13 13     13   3218 use MIDI::Stream::Tables qw/ combine_bytes /;
  13         50  
  13         2750  
14              
15              
16             field $position :reader;
17              
18             ADJUST {
19             $position = combine_bytes( $self->message->@[ 1, 2 ] );
20             }
21              
22             1;
23              
24             __END__