Coverage Report

Created: 2026-07-14 06:05

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/open5gs/lib/asn1c/s1ap/S1AP_Criticality.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-CommonDataTypes"
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_Criticality.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_Criticality_constr_1 CC_NOTUSED = {
16
  { APC_CONSTRAINED,   2,  2,  0,  2 }  /* (0..2) */,
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_Criticality_value2enum_1[] = {
22
  { 0,  6,  "reject" },
23
  { 1,  6,  "ignore" },
24
  { 2,  6,  "notify" }
25
};
26
static int asn_validate_S1AP_Criticality_1(const asn_TYPE_descriptor_t *td,
27
                       const void *sptr,
28
                       asn_app_constraint_failed_f *ctfailcb,
29
0
                       void* app_key) {
30
0
    if(! sptr) { return -1; }
31
0
    e_S1AP_Criticality value = *(e_S1AP_Criticality*)sptr;
32
0
    switch(value) {
33
0
    case S1AP_Criticality_reject:
34
0
    case S1AP_Criticality_ignore:
35
0
    case S1AP_Criticality_notify:
36
0
        return 0;
37
0
    }
38
0
    return -1;
39
0
}
40
static const unsigned int asn_MAP_S1AP_Criticality_enum2value_1[] = {
41
  1,  /* ignore(1) */
42
  2,  /* notify(2) */
43
  0 /* reject(0) */
44
};
45
const asn_INTEGER_specifics_t asn_SPC_S1AP_Criticality_specs_1 = {
46
  asn_MAP_S1AP_Criticality_value2enum_1,  /* "tag" => N; sorted by tag */
47
  asn_MAP_S1AP_Criticality_enum2value_1,  /* N => "tag"; sorted by N */
48
  3,  /* Number of elements in the maps */
49
  0,  /* Enumeration is not extensible */
50
  1,  /* Strict enumeration */
51
  0,  /* Native long size */
52
  0
53
};
54
static const ber_tlv_tag_t asn_DEF_S1AP_Criticality_tags_1[] = {
55
  (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
56
};
57
asn_TYPE_descriptor_t asn_DEF_S1AP_Criticality = {
58
  "Criticality",
59
  "Criticality",
60
  &asn_OP_NativeEnumerated,
61
  asn_DEF_S1AP_Criticality_tags_1,
62
  sizeof(asn_DEF_S1AP_Criticality_tags_1)
63
    /sizeof(asn_DEF_S1AP_Criticality_tags_1[0]), /* 1 */
64
  asn_DEF_S1AP_Criticality_tags_1,  /* Same as above */
65
  sizeof(asn_DEF_S1AP_Criticality_tags_1)
66
    /sizeof(asn_DEF_S1AP_Criticality_tags_1[0]), /* 1 */
67
  {
68
#if !defined(ASN_DISABLE_OER_SUPPORT)
69
    0,
70
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
71
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
72
    &asn_PER_type_S1AP_Criticality_constr_1,
73
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
74
#if !defined(ASN_DISABLE_JER_SUPPORT)
75
    0,
76
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
77
    asn_validate_S1AP_Criticality_1
78
  },
79
  0, 0, /* Defined elsewhere */
80
  &asn_SPC_S1AP_Criticality_specs_1 /* Additional specs */
81
};
82