LCOV - code coverage report
Current view: top level - src/MIDI_Inputs - ChannelMessageMatcher.hpp (source / functions) Hit Total Coverage
Test: 90a1b9beff85a60dc6ebcea034a947a845e56960 Lines: 3 6 50.0 %
Date: 2019-11-30 15:53:32 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         125 :     ChannelMessageMatcher(uint8_t type, Channel channel, uint8_t data1,
      12             :                           uint8_t data2, uint8_t CN = 0)
      13         125 :         : type(type), channel(channel.getRaw()), data1(data1), data2(data2),
      14         125 :           CN(CN) {}
      15           0 :     ChannelMessageMatcher(const ChannelMessage &midimsg)
      16           0 :         : type(midimsg.header & 0xF0), channel(midimsg.header & 0x0F),
      17           0 :           data1(midimsg.data1), data2(midimsg.data2), CN(midimsg.CN) {}
      18             :     uint8_t type;
      19             :     uint8_t channel;
      20             :     uint8_t data1;
      21             :     uint8_t data2;
      22             :     uint8_t CN;
      23             : };
      24             : 
      25             : END_CS_NAMESPACE

Generated by: LCOV version 1.14-5-g4ff2ed6