Coverage Report

Created: 2026-06-30 06:14

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/open5gs/lib/asn1c/ngap/NGAP_MonitoringRequest.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_MonitoringRequest.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_MonitoringRequest_constr_1 CC_NOTUSED = {
16
  { APC_CONSTRAINED | APC_EXTENSIBLE,  2,  2,  0,  3 }  /* (0..3,...) */,
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_MonitoringRequest_value2enum_1[] = {
22
  { 0,  2,  "ul" },
23
  { 1,  2,  "dl" },
24
  { 2,  4,  "both" },
25
  { 3,  4,  "stop" }
26
  /* This list is extensible */
27
};
28
static int asn_validate_NGAP_MonitoringRequest_1(const asn_TYPE_descriptor_t *td,
29
                       const void *sptr,
30
                       asn_app_constraint_failed_f *ctfailcb,
31
0
                       void* app_key) {
32
0
    if(! sptr) { return -1; }
33
0
    e_NGAP_MonitoringRequest value = *(e_NGAP_MonitoringRequest*)sptr;
34
0
    switch(value) {
35
0
    case NGAP_MonitoringRequest_ul:
36
0
    case NGAP_MonitoringRequest_dl:
37
0
    case NGAP_MonitoringRequest_both:
38
0
    case NGAP_MonitoringRequest_stop:
39
0
        return 0;
40
0
    }
41
0
    return -1;
42
0
}
43
static const unsigned int asn_MAP_NGAP_MonitoringRequest_enum2value_1[] = {
44
  2,  /* both(2) */
45
  1,  /* dl(1) */
46
  3,  /* stop(3) */
47
  0 /* ul(0) */
48
  /* This list is extensible */
49
};
50
const asn_INTEGER_specifics_t asn_SPC_NGAP_MonitoringRequest_specs_1 = {
51
  asn_MAP_NGAP_MonitoringRequest_value2enum_1,  /* "tag" => N; sorted by tag */
52
  asn_MAP_NGAP_MonitoringRequest_enum2value_1,  /* N => "tag"; sorted by N */
53
  4,  /* Number of elements in the maps */
54
  5,  /* Extensions before this member */
55
  1,  /* Strict enumeration */
56
  0,  /* Native long size */
57
  0
58
};
59
static const ber_tlv_tag_t asn_DEF_NGAP_MonitoringRequest_tags_1[] = {
60
  (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
61
};
62
asn_TYPE_descriptor_t asn_DEF_NGAP_MonitoringRequest = {
63
  "MonitoringRequest",
64
  "MonitoringRequest",
65
  &asn_OP_NativeEnumerated,
66
  asn_DEF_NGAP_MonitoringRequest_tags_1,
67
  sizeof(asn_DEF_NGAP_MonitoringRequest_tags_1)
68
    /sizeof(asn_DEF_NGAP_MonitoringRequest_tags_1[0]), /* 1 */
69
  asn_DEF_NGAP_MonitoringRequest_tags_1,  /* Same as above */
70
  sizeof(asn_DEF_NGAP_MonitoringRequest_tags_1)
71
    /sizeof(asn_DEF_NGAP_MonitoringRequest_tags_1[0]), /* 1 */
72
  {
73
#if !defined(ASN_DISABLE_OER_SUPPORT)
74
    0,
75
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
76
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
77
    &asn_PER_type_NGAP_MonitoringRequest_constr_1,
78
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
79
#if !defined(ASN_DISABLE_JER_SUPPORT)
80
    0,
81
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
82
    asn_validate_NGAP_MonitoringRequest_1
83
  },
84
  0, 0, /* Defined elsewhere */
85
  &asn_SPC_NGAP_MonitoringRequest_specs_1 /* Additional specs */
86
};
87