GCC Code Coverage Report


Directory: ./
File: test/unit-tests/stubs/freertos/semphr.h
Date: 2025-12-16 19:41:02
Exec Total Coverage
Lines: 0 9 0.0%
Functions: 0 4 0.0%
Branches: 0 2 0.0%

Line Branch Exec Source
1 #pragma once
2
3 #include "freertos/FreeRTOS.h"
4
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8
9 typedef struct SemaphoreStub {
10 int dummy;
11 }* SemaphoreHandle_t;
12
13 ✗ static inline SemaphoreHandle_t xSemaphoreCreateMutex(void) {
14 ✗ return new SemaphoreStub{0};
15 }
16
17 ✗ static inline void vSemaphoreDelete(SemaphoreHandle_t xSemaphore) {
18 ✗ delete xSemaphore;
19 ✗ }
20
21 ✗ static inline BaseType_t xSemaphoreTake(SemaphoreHandle_t /*xSemaphore*/, TickType_t /*xTicksToWait*/) {
22 ✗ return pdPASS;
23 }
24
25 ✗ static inline BaseType_t xSemaphoreGive(SemaphoreHandle_t /*xSemaphore*/) {
26 ✗ return pdPASS;
27 }
28
29 #ifdef __cplusplus
30 }
31 #endif
32