GCC Code Coverage Report


Directory: ./
File: firmware/controllers/hysteresis.cpp
Date: 2025-11-16 14:52:24
Coverage Exec Excl Total
Lines: 100.0% 6 0 6
Functions: 100.0% 1 0 1
Branches: 100.0% 4 0 4
Decisions: 100.0% 4 - 4

Line Branch Decision Exec Source
1 //
2 // Created by kifir on 8/23/24.
3 //
4
5 #include "hysteresis.h"
6
7 272885 bool Hysteresis::test(const bool risingCondition, const bool fallingCondition) {
8
2/2
✓ Branch 0 taken 160 times.
✓ Branch 1 taken 272725 times.
2/2
✓ Decision 'true' taken 160 times.
✓ Decision 'false' taken 272725 times.
272885 if (risingCondition) {
9 160 m_state = true;
10
2/2
✓ Branch 0 taken 232734 times.
✓ Branch 1 taken 39991 times.
2/2
✓ Decision 'true' taken 232734 times.
✓ Decision 'false' taken 39991 times.
272725 } else if (fallingCondition) {
11 232734 m_state = false;
12 }
13
14 272885 return m_state;
15 }
16