Coverage Report

Created: 2026-06-30 06:14

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/open5gs/lib/asn1c/s1ap/S1AP_LoggingInterval.c
Line
Count
Source
1
/*
2
 * Generated by asn1c-v1.4-43-gb7926896-2026-05-03 (https://github.com/mouse07410/asn1c)
3
 * From ASN.1 module "S1AP-IEs"
4
 *  found in "../support/s1ap-r19.1.0/36413-j10.asn"
5
 *  `asn1c -pdu=all -fprefix=S1AP_ -fcompound-names -findirect-choice -fno-include-deps -no-gen-BER -no-gen-XER -no-gen-JER -no-gen-CBOR -no-gen-OER -no-gen-UPER`
6
 */
7
8
#include "S1AP_LoggingInterval.h"
9
10
/*
11
 * This type is implemented using NativeEnumerated,
12
 * so here we adjust the DEF accordingly.
13
 */
14
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
15
asn_per_constraints_t asn_PER_type_S1AP_LoggingInterval_constr_1 CC_NOTUSED = {
16
  { APC_CONSTRAINED,   3,  3,  0,  7 }  /* (0..7) */,
17
  { APC_UNCONSTRAINED,  -1, -1,  0,  0 },
18
  0, 0  /* No PER value map */
19
};
20
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
21
static const asn_INTEGER_enum_map_t asn_MAP_S1AP_LoggingInterval_value2enum_1[] = {
22
  { 0,  6,  "ms1280" },
23
  { 1,  6,  "ms2560" },
24
  { 2,  6,  "ms5120" },
25
  { 3,  7,  "ms10240" },
26
  { 4,  7,  "ms20480" },
27
  { 5,  7,  "ms30720" },
28
  { 6,  7,  "ms40960" },
29
  { 7,  7,  "ms61440" }
30
};
31
static int asn_validate_S1AP_LoggingInterval_1(const asn_TYPE_descriptor_t *td,
32
                       const void *sptr,
33
                       asn_app_constraint_failed_f *ctfailcb,
34
0
                       void* app_key) {
35
0
    if(! sptr) { return -1; }
36
0
    e_S1AP_LoggingInterval value = *(e_S1AP_LoggingInterval*)sptr;
37
0
    switch(value) {
38
0
    case S1AP_LoggingInterval_ms1280:
39
0
    case S1AP_LoggingInterval_ms2560:
40
0
    case S1AP_LoggingInterval_ms5120:
41
0
    case S1AP_LoggingInterval_ms10240:
42
0
    case S1AP_LoggingInterval_ms20480:
43
0
    case S1AP_LoggingInterval_ms30720:
44
0
    case S1AP_LoggingInterval_ms40960:
45
0
    case S1AP_LoggingInterval_ms61440:
46
0
        return 0;
47
0
    }
48
0
    return -1;
49
0
}
50
static const unsigned int asn_MAP_S1AP_LoggingInterval_enum2value_1[] = {
51
  3,  /* ms10240(3) */
52
  0,  /* ms1280(0) */
53
  4,  /* ms20480(4) */
54
  1,  /* ms2560(1) */
55
  5,  /* ms30720(5) */
56
  6,  /* ms40960(6) */
57
  2,  /* ms5120(2) */
58
  7 /* ms61440(7) */
59
};
60
const asn_INTEGER_specifics_t asn_SPC_S1AP_LoggingInterval_specs_1 = {
61
  asn_MAP_S1AP_LoggingInterval_value2enum_1,  /* "tag" => N; sorted by tag */
62
  asn_MAP_S1AP_LoggingInterval_enum2value_1,  /* N => "tag"; sorted by N */
63
  8,  /* Number of elements in the maps */
64
  0,  /* Enumeration is not extensible */
65
  1,  /* Strict enumeration */
66
  0,  /* Native long size */
67
  0
68
};
69
static const ber_tlv_tag_t asn_DEF_S1AP_LoggingInterval_tags_1[] = {
70
  (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
71
};
72
asn_TYPE_descriptor_t asn_DEF_S1AP_LoggingInterval = {
73
  "LoggingInterval",
74
  "LoggingInterval",
75
  &asn_OP_NativeEnumerated,
76
  asn_DEF_S1AP_LoggingInterval_tags_1,
77
  sizeof(asn_DEF_S1AP_LoggingInterval_tags_1)
78
    /sizeof(asn_DEF_S1AP_LoggingInterval_tags_1[0]), /* 1 */
79
  asn_DEF_S1AP_LoggingInterval_tags_1,  /* Same as above */
80
  sizeof(asn_DEF_S1AP_LoggingInterval_tags_1)
81
    /sizeof(asn_DEF_S1AP_LoggingInterval_tags_1[0]), /* 1 */
82
  {
83
#if !defined(ASN_DISABLE_OER_SUPPORT)
84
    0,
85
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
86
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
87
    &asn_PER_type_S1AP_LoggingInterval_constr_1,
88
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
89
#if !defined(ASN_DISABLE_JER_SUPPORT)
90
    0,
91
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
92
    asn_validate_S1AP_LoggingInterval_1
93
  },
94
  0, 0, /* Defined elsewhere */
95
  &asn_SPC_S1AP_LoggingInterval_specs_1 /* Additional specs */
96
};
97