GCC Code Coverage Report


Directory: ./
File: test/unit-tests/stubs/freertos/queue.h
Date: 2025-12-16 19:41:02
Exec Total Coverage
Lines: 0 11 0.0%
Functions: 0 5 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 QueueStub {
10 int dummy;
11 }* QueueHandle_t;
12
13 ✗ static inline QueueHandle_t xQueueCreate(UBaseType_t /*uxQueueLength*/, UBaseType_t /*uxItemSize*/) {
14 ✗ return new QueueStub{0};
15 }
16
17 ✗ static inline void vQueueDelete(QueueHandle_t xQueue) {
18 ✗ delete xQueue;
19 ✗ }
20
21 ✗ static inline BaseType_t xQueueSend(QueueHandle_t /*xQueue*/, const void* /*pvItemToQueue*/, TickType_t /*xTicksToWait*/) {
22 ✗ return pdPASS;
23 }
24
25 ✗ static inline BaseType_t xQueueReceive(QueueHandle_t /*xQueue*/, void* /*pvBuffer*/, TickType_t /*xTicksToWait*/) {
26 ✗ return pdFALSE; // No items in stub queue
27 }
28
29 ✗ static inline BaseType_t xQueueSendFromISR(QueueHandle_t /*xQueue*/, const void* /*pvItemToQueue*/, BaseType_t* /*pxHigherPriorityTaskWoken*/) {
30 ✗ return pdPASS;
31 }
32
33 #ifdef __cplusplus
34 }
35 #endif
36