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_HandoverWindowStart.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_HandoverWindowStart.h"
9
10
int
11
NGAP_HandoverWindowStart_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
12
0
      asn_app_constraint_failed_f *ctfailcb, void *app_key) {
13
0
  const INTEGER_t *st = (const INTEGER_t *)sptr;
14
0
  unsigned long value;
15
  
16
0
  if(!sptr) {
17
0
    ASN__CTFAIL(app_key, td, sptr,
18
0
      "%s: value not given (%s:%d)",
19
0
      td->name, __FILE__, __LINE__);
20
0
    return -1;
21
0
  }
22
  
23
0
  if(asn_INTEGER2ulong(st, &value)) {
24
0
    ASN__CTFAIL(app_key, td, sptr,
25
0
      "%s: value too large (%s:%d)",
26
0
      td->name, __FILE__, __LINE__);
27
0
    return -1;
28
0
  }
29
  
30
0
  if((value <= 549755813887UL)) {
31
    /* Constraint check succeeded */
32
0
    return 0;
33
0
  } else {
34
0
    ASN__CTFAIL(app_key, td, sptr,
35
0
      "%s: constraint failed (%s:%d)",
36
0
      td->name, __FILE__, __LINE__);
37
0
    return -1;
38
0
  }
39
0
}
40
41
/*
42
 * This type is implemented using INTEGER,
43
 * so here we adjust the DEF accordingly.
44
 */
45
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
46
asn_per_constraints_t asn_PER_type_NGAP_HandoverWindowStart_constr_1 CC_NOTUSED = {
47
  { APC_CONSTRAINED,   39, -1,  0,  549755813887 }  /* (0..549755813887) */,
48
  { APC_UNCONSTRAINED,  -1, -1,  0,  0 },
49
  0, 0  /* No PER value map */
50
};
51
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
52
static const ber_tlv_tag_t asn_DEF_NGAP_HandoverWindowStart_tags_1[] = {
53
  (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
54
};
55
asn_TYPE_descriptor_t asn_DEF_NGAP_HandoverWindowStart = {
56
  "HandoverWindowStart",
57
  "HandoverWindowStart",
58
  &asn_OP_INTEGER,
59
  asn_DEF_NGAP_HandoverWindowStart_tags_1,
60
  sizeof(asn_DEF_NGAP_HandoverWindowStart_tags_1)
61
    /sizeof(asn_DEF_NGAP_HandoverWindowStart_tags_1[0]), /* 1 */
62
  asn_DEF_NGAP_HandoverWindowStart_tags_1,  /* Same as above */
63
  sizeof(asn_DEF_NGAP_HandoverWindowStart_tags_1)
64
    /sizeof(asn_DEF_NGAP_HandoverWindowStart_tags_1[0]), /* 1 */
65
  {
66
#if !defined(ASN_DISABLE_OER_SUPPORT)
67
    0,
68
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
69
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
70
    &asn_PER_type_NGAP_HandoverWindowStart_constr_1,
71
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
72
#if !defined(ASN_DISABLE_JER_SUPPORT)
73
    0,
74
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
75
    NGAP_HandoverWindowStart_constraint
76
  },
77
  0, 0, /* No members */
78
  0 /* No specifics */
79
};
80