GCC Code Coverage Report


Directory: src/
File: src/interpreter/line6pod2/line6pod2.cpp
Date: 2022-05-10 08:17:32
Exec Total Coverage
Lines: 11 11 100.0%
Functions: 3 3 100.0%
Branches: 7 8 87.5%

Line Branch Exec Source
1 #include "line6pod2.h"
2 #include "line6pod2_program_changes.h"
3
4 using namespace interpreter;
5
6 2 Line6Pod2::Line6Pod2()
7 : BaseInterpreter()
8 2 , m_message(nullptr)
9 {
10
11 2 }
12
13 6 Line6Pod2::~Line6Pod2()
14 {
15
16 6 }
17
18 6 MidiMessage *Line6Pod2::buildMessage(const QByteArray &message)
19 {
20
2/2
✓ Branch 1 taken 5 times.
✓ Branch 2 taken 1 times.
6 if (message.size() > 1) {
21 5 uint8_t status = message.at(0);
22
4/4
✓ Branch 0 taken 4 times.
✓ Branch 1 taken 1 times.
✓ Branch 2 taken 3 times.
✓ Branch 3 taken 1 times.
5 if (0xc0 <= status && status <= 0xcf) {
23
1/2
✓ Branch 2 taken 3 times.
✗ Branch 3 not taken.
3 return new Line6Pod2ProgramChange(message);
24 }
25 }
26 3 return nullptr;
27 }
28