LCOV - code coverage report
Current view: top level - src/MIDI_Interfaces/USBMIDI - USBMIDI_Mock.hpp (source / functions) Hit Total Coverage
Test: 169c36a3797bc662d84b5726f34a3f37d3c58247 Lines: 5 6 83.3 %
Date: 2024-11-09 15:32:27 Functions: 6 7 85.7 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : #include <AH/Containers/Array.hpp>
       2             : #include <Settings/NamespaceSettings.hpp>
       3             : 
       4             : #include <gmock/gmock.h>
       5             : 
       6             : BEGIN_CS_NAMESPACE
       7             : 
       8             : struct USBDeviceMIDIBackend {
       9             :     using MIDIUSBPacket_t = AH::Array<uint8_t, 4>;
      10             : 
      11          56 :     MOCK_METHOD(void, write, (uint8_t, uint8_t, uint8_t, uint8_t));
      12          38 :     MOCK_METHOD(MIDIUSBPacket_t, read, ());
      13           0 :     MOCK_METHOD(void, sendNow, ());
      14          28 :     void write(MIDIUSBPacket_t d) {
      15          28 :         return write(d.data[0], d.data[1], d.data[2], d.data[3]);
      16             :     }
      17          29 :     static bool preferImmediateSend() { return false; }
      18             : };
      19             : 
      20             : END_CS_NAMESPACE

Generated by: LCOV version 1.15