Coverage Report

Created: 2026-11-06 06:15

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/open5gs/lib/asn1c/ngap/NGAP_NR-Paging-Time-Window.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 "NGAP-IEs"
4
 *  found in "../support/ngap-r19.2.0/38413-j20.asn"
5
 *  `asn1c -pdu=all -fprefix=NGAP_ -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 "NGAP_NR-Paging-Time-Window.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_NGAP_NR_Paging_Time_Window_constr_1 CC_NOTUSED = {
16
  { APC_CONSTRAINED | APC_EXTENSIBLE,  4,  4,  0,  15 } /* (0..15,...) */,
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_NGAP_NR_Paging_Time_Window_value2enum_1[] = {
22
  { 0,  2,  "s1" },
23
  { 1,  2,  "s2" },
24
  { 2,  2,  "s3" },
25
  { 3,  2,  "s4" },
26
  { 4,  2,  "s5" },
27
  { 5,  2,  "s6" },
28
  { 6,  2,  "s7" },
29
  { 7,  2,  "s8" },
30
  { 8,  2,  "s9" },
31
  { 9,  3,  "s10" },
32
  { 10, 3,  "s11" },
33
  { 11, 3,  "s12" },
34
  { 12, 3,  "s13" },
35
  { 13, 3,  "s14" },
36
  { 14, 3,  "s15" },
37
  { 15, 3,  "s16" },
38
  { 16, 3,  "s17" },
39
  { 17, 3,  "s18" },
40
  { 18, 3,  "s19" },
41
  { 19, 3,  "s20" },
42
  { 20, 3,  "s21" },
43
  { 21, 3,  "s22" },
44
  { 22, 3,  "s23" },
45
  { 23, 3,  "s24" },
46
  { 24, 3,  "s25" },
47
  { 25, 3,  "s26" },
48
  { 26, 3,  "s27" },
49
  { 27, 3,  "s28" },
50
  { 28, 3,  "s29" },
51
  { 29, 3,  "s30" },
52
  { 30, 3,  "s31" },
53
  { 31, 3,  "s32" }
54
  /* This list is extensible */
55
};
56
static int asn_validate_NGAP_NR_Paging_Time_Window_1(const asn_TYPE_descriptor_t *td,
57
                       const void *sptr,
58
                       asn_app_constraint_failed_f *ctfailcb,
59
0
                       void* app_key) {
60
0
    if(! sptr) { return -1; }
61
0
    e_NGAP_NR_Paging_Time_Window value = *(e_NGAP_NR_Paging_Time_Window*)sptr;
62
0
    switch(value) {
63
0
    case NGAP_NR_Paging_Time_Window_s1:
64
0
    case NGAP_NR_Paging_Time_Window_s2:
65
0
    case NGAP_NR_Paging_Time_Window_s3:
66
0
    case NGAP_NR_Paging_Time_Window_s4:
67
0
    case NGAP_NR_Paging_Time_Window_s5:
68
0
    case NGAP_NR_Paging_Time_Window_s6:
69
0
    case NGAP_NR_Paging_Time_Window_s7:
70
0
    case NGAP_NR_Paging_Time_Window_s8:
71
0
    case NGAP_NR_Paging_Time_Window_s9:
72
0
    case NGAP_NR_Paging_Time_Window_s10:
73
0
    case NGAP_NR_Paging_Time_Window_s11:
74
0
    case NGAP_NR_Paging_Time_Window_s12:
75
0
    case NGAP_NR_Paging_Time_Window_s13:
76
0
    case NGAP_NR_Paging_Time_Window_s14:
77
0
    case NGAP_NR_Paging_Time_Window_s15:
78
0
    case NGAP_NR_Paging_Time_Window_s16:
79
0
    case NGAP_NR_Paging_Time_Window_s17:
80
0
    case NGAP_NR_Paging_Time_Window_s18:
81
0
    case NGAP_NR_Paging_Time_Window_s19:
82
0
    case NGAP_NR_Paging_Time_Window_s20:
83
0
    case NGAP_NR_Paging_Time_Window_s21:
84
0
    case NGAP_NR_Paging_Time_Window_s22:
85
0
    case NGAP_NR_Paging_Time_Window_s23:
86
0
    case NGAP_NR_Paging_Time_Window_s24:
87
0
    case NGAP_NR_Paging_Time_Window_s25:
88
0
    case NGAP_NR_Paging_Time_Window_s26:
89
0
    case NGAP_NR_Paging_Time_Window_s27:
90
0
    case NGAP_NR_Paging_Time_Window_s28:
91
0
    case NGAP_NR_Paging_Time_Window_s29:
92
0
    case NGAP_NR_Paging_Time_Window_s30:
93
0
    case NGAP_NR_Paging_Time_Window_s31:
94
0
    case NGAP_NR_Paging_Time_Window_s32:
95
0
        return 0;
96
0
    }
97
0
    return -1;
98
0
}
99
static const unsigned int asn_MAP_NGAP_NR_Paging_Time_Window_enum2value_1[] = {
100
  0,  /* s1(0) */
101
  9,  /* s10(9) */
102
  10, /* s11(10) */
103
  11, /* s12(11) */
104
  12, /* s13(12) */
105
  13, /* s14(13) */
106
  14, /* s15(14) */
107
  15, /* s16(15) */
108
  16, /* s17(16) */
109
  17, /* s18(17) */
110
  18, /* s19(18) */
111
  1,  /* s2(1) */
112
  19, /* s20(19) */
113
  20, /* s21(20) */
114
  21, /* s22(21) */
115
  22, /* s23(22) */
116
  23, /* s24(23) */
117
  24, /* s25(24) */
118
  25, /* s26(25) */
119
  26, /* s27(26) */
120
  27, /* s28(27) */
121
  28, /* s29(28) */
122
  2,  /* s3(2) */
123
  29, /* s30(29) */
124
  30, /* s31(30) */
125
  31, /* s32(31) */
126
  3,  /* s4(3) */
127
  4,  /* s5(4) */
128
  5,  /* s6(5) */
129
  6,  /* s7(6) */
130
  7,  /* s8(7) */
131
  8 /* s9(8) */
132
  /* This list is extensible */
133
};
134
const asn_INTEGER_specifics_t asn_SPC_NGAP_NR_Paging_Time_Window_specs_1 = {
135
  asn_MAP_NGAP_NR_Paging_Time_Window_value2enum_1,  /* "tag" => N; sorted by tag */
136
  asn_MAP_NGAP_NR_Paging_Time_Window_enum2value_1,  /* N => "tag"; sorted by N */
137
  32, /* Number of elements in the maps */
138
  17, /* Extensions before this member */
139
  1,  /* Strict enumeration */
140
  0,  /* Native long size */
141
  0
142
};
143
static const ber_tlv_tag_t asn_DEF_NGAP_NR_Paging_Time_Window_tags_1[] = {
144
  (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
145
};
146
asn_TYPE_descriptor_t asn_DEF_NGAP_NR_Paging_Time_Window = {
147
  "NR-Paging-Time-Window",
148
  "NR-Paging-Time-Window",
149
  &asn_OP_NativeEnumerated,
150
  asn_DEF_NGAP_NR_Paging_Time_Window_tags_1,
151
  sizeof(asn_DEF_NGAP_NR_Paging_Time_Window_tags_1)
152
    /sizeof(asn_DEF_NGAP_NR_Paging_Time_Window_tags_1[0]), /* 1 */
153
  asn_DEF_NGAP_NR_Paging_Time_Window_tags_1,  /* Same as above */
154
  sizeof(asn_DEF_NGAP_NR_Paging_Time_Window_tags_1)
155
    /sizeof(asn_DEF_NGAP_NR_Paging_Time_Window_tags_1[0]), /* 1 */
156
  {
157
#if !defined(ASN_DISABLE_OER_SUPPORT)
158
    0,
159
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
160
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
161
    &asn_PER_type_NGAP_NR_Paging_Time_Window_constr_1,
162
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
163
#if !defined(ASN_DISABLE_JER_SUPPORT)
164
    0,
165
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
166
    asn_validate_NGAP_NR_Paging_Time_Window_1
167
  },
168
  0, 0, /* Defined elsewhere */
169
  &asn_SPC_NGAP_NR_Paging_Time_Window_specs_1 /* Additional specs */
170
};
171