Coverage Report

Created: 2026-11-12 06:28

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