Coverage Report

Created: 2026-09-28 06:22

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/open5gs/lib/sbi/openapi/model/bluetooth_rssi.c
Line
Count
Source
1
2
#include <stdlib.h>
3
#include <string.h>
4
#include <stdio.h>
5
#include "bluetooth_rssi.h"
6
7
char* OpenAPI_bluetooth_rssi_ToString(OpenAPI_bluetooth_rssi_e bluetooth_rssi)
8
0
{
9
0
    const char *bluetooth_rssiArray[] =  { "NULL", "true" };
10
0
    size_t sizeofArray = sizeof(bluetooth_rssiArray) / sizeof(bluetooth_rssiArray[0]);
11
0
    if (bluetooth_rssi < sizeofArray)
12
0
        return (char *)bluetooth_rssiArray[bluetooth_rssi];
13
0
    else
14
0
        return (char *)"Unknown";
15
0
}
16
17
OpenAPI_bluetooth_rssi_e OpenAPI_bluetooth_rssi_FromString(char* bluetooth_rssi)
18
0
{
19
0
    int stringToReturn = 0;
20
0
    const char *bluetooth_rssiArray[] =  { "NULL", "true" };
21
0
    size_t sizeofArray = sizeof(bluetooth_rssiArray) / sizeof(bluetooth_rssiArray[0]);
22
0
    while (stringToReturn < sizeofArray) {
23
0
        if (strcmp(bluetooth_rssi, bluetooth_rssiArray[stringToReturn]) == 0) {
24
0
            return stringToReturn;
25
0
        }
26
0
        stringToReturn++;
27
0
    }
28
0
    return 0;
29
0
}
30