LCOV - code coverage report
Current view: top level - src/MIDI_Inputs - ChannelMessageMatcher.hpp (source / functions) Hit Total Coverage
Test: e224b347cd670555e44f06608ac41bd1ace9d9d8 Lines: 2 5 40.0 %
Date: 2020-09-08 17:44:46 Functions: 1 2 50.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* ✔ */
       2             : 
       3             : #pragma once
       4             : 
       5             : #include <MIDI_Parsers/MIDI_Parser.hpp>
       6             : 
       7             : BEGIN_CS_NAMESPACE
       8             : 
       9             : /// Struct for easily matching MIDI messages.
      10             : struct ChannelMessageMatcher {
      11         129 :     ChannelMessageMatcher(MIDIMessageType type, Channel channel, uint8_t data1,
      12             :                           uint8_t data2, uint8_t CN = 0)
      13         129 :         : type(type), channel(channel), data1(data1), data2(data2), CN(CN) {}
      14           0 :     ChannelMessageMatcher(const ChannelMessage &midimsg)
      15           0 :         : type(midimsg.getMessageType()), channel(midimsg.getChannel()),
      16           0 :           data1(midimsg.data1), data2(midimsg.data2), CN(midimsg.CN) {}
      17             :     MIDIMessageType type;
      18             :     Channel channel;
      19             :     uint8_t data1;
      20             :     uint8_t data2;
      21             :     uint8_t CN;
      22             : };
      23             : 
      24             : END_CS_NAMESPACE

Generated by: LCOV version 1.14-6-g40580cd