Coverage Report

Created: 2026-07-14 06:05

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/open5gs/lib/asn1c/ngap/NGAP_SgNB-UE-X2AP-ID.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_SgNB-UE-X2AP-ID.h"
9
10
int
11
NGAP_SgNB_UE_X2AP_ID_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
12
0
      asn_app_constraint_failed_f *ctfailcb, void *app_key) {
13
0
  unsigned long value;
14
  
15
0
  if(!sptr) {
16
0
    ASN__CTFAIL(app_key, td, sptr,
17
0
      "%s: value not given (%s:%d)",
18
0
      td->name, __FILE__, __LINE__);
19
0
    return -1;
20
0
  }
21
  
22
0
  value = *(const unsigned long *)sptr;
23
  
24
0
  if((value <= 4294967295UL)) {
25
    /* Constraint check succeeded */
26
0
    return 0;
27
0
  } else {
28
0
    ASN__CTFAIL(app_key, td, sptr,
29
0
      "%s: constraint failed (%s:%d)",
30
0
      td->name, __FILE__, __LINE__);
31
0
    return -1;
32
0
  }
33
0
}
34
35
/*
36
 * This type is implemented using NativeInteger,
37
 * so here we adjust the DEF accordingly.
38
 */
39
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
40
asn_per_constraints_t asn_PER_type_NGAP_SgNB_UE_X2AP_ID_constr_1 CC_NOTUSED = {
41
  { APC_CONSTRAINED,   32, -1,  0,  4294967295 }  /* (0..4294967295) */,
42
  { APC_UNCONSTRAINED,  -1, -1,  0,  0 },
43
  0, 0  /* No PER value map */
44
};
45
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
46
const asn_INTEGER_specifics_t asn_SPC_NGAP_SgNB_UE_X2AP_ID_specs_1 = {
47
  0,  0,  0,  0,  0,
48
  0,  /* Native long size */
49
  1 /* Unsigned representation */
50
};
51
static const ber_tlv_tag_t asn_DEF_NGAP_SgNB_UE_X2AP_ID_tags_1[] = {
52
  (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
53
};
54
asn_TYPE_descriptor_t asn_DEF_NGAP_SgNB_UE_X2AP_ID = {
55
  "SgNB-UE-X2AP-ID",
56
  "SgNB-UE-X2AP-ID",
57
  &asn_OP_NativeInteger,
58
  asn_DEF_NGAP_SgNB_UE_X2AP_ID_tags_1,
59
  sizeof(asn_DEF_NGAP_SgNB_UE_X2AP_ID_tags_1)
60
    /sizeof(asn_DEF_NGAP_SgNB_UE_X2AP_ID_tags_1[0]), /* 1 */
61
  asn_DEF_NGAP_SgNB_UE_X2AP_ID_tags_1,  /* Same as above */
62
  sizeof(asn_DEF_NGAP_SgNB_UE_X2AP_ID_tags_1)
63
    /sizeof(asn_DEF_NGAP_SgNB_UE_X2AP_ID_tags_1[0]), /* 1 */
64
  {
65
#if !defined(ASN_DISABLE_OER_SUPPORT)
66
    0,
67
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
68
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
69
    &asn_PER_type_NGAP_SgNB_UE_X2AP_ID_constr_1,
70
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
71
#if !defined(ASN_DISABLE_JER_SUPPORT)
72
    0,
73
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
74
    NGAP_SgNB_UE_X2AP_ID_constraint
75
  },
76
  0, 0, /* No members */
77
  &asn_SPC_NGAP_SgNB_UE_X2AP_ID_specs_1 /* Additional specs */
78
};
79