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_M1ReportingTrigger.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_M1ReportingTrigger.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_M1ReportingTrigger_constr_1 CC_NOTUSED = {
16
  { APC_CONSTRAINED | APC_EXTENSIBLE,  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_NGAP_M1ReportingTrigger_value2enum_1[] = {
22
  { 0,  8,  "periodic" },
23
  { 1,  16, "a2eventtriggered" },
24
  { 2,  25, "a2eventtriggered-periodic" }
25
  /* This list is extensible */
26
};
27
static int asn_validate_NGAP_M1ReportingTrigger_1(const asn_TYPE_descriptor_t *td,
28
                       const void *sptr,
29
                       asn_app_constraint_failed_f *ctfailcb,
30
0
                       void* app_key) {
31
0
    if(! sptr) { return -1; }
32
0
    e_NGAP_M1ReportingTrigger value = *(e_NGAP_M1ReportingTrigger*)sptr;
33
0
    switch(value) {
34
0
    case NGAP_M1ReportingTrigger_periodic:
35
0
    case NGAP_M1ReportingTrigger_a2eventtriggered:
36
0
    case NGAP_M1ReportingTrigger_a2eventtriggered_periodic:
37
0
        return 0;
38
0
    }
39
0
    return -1;
40
0
}
41
static const unsigned int asn_MAP_NGAP_M1ReportingTrigger_enum2value_1[] = {
42
  1,  /* a2eventtriggered(1) */
43
  2,  /* a2eventtriggered-periodic(2) */
44
  0 /* periodic(0) */
45
  /* This list is extensible */
46
};
47
const asn_INTEGER_specifics_t asn_SPC_NGAP_M1ReportingTrigger_specs_1 = {
48
  asn_MAP_NGAP_M1ReportingTrigger_value2enum_1, /* "tag" => N; sorted by tag */
49
  asn_MAP_NGAP_M1ReportingTrigger_enum2value_1, /* N => "tag"; sorted by N */
50
  3,  /* Number of elements in the maps */
51
  4,  /* Extensions before this member */
52
  1,  /* Strict enumeration */
53
  0,  /* Native long size */
54
  0
55
};
56
static const ber_tlv_tag_t asn_DEF_NGAP_M1ReportingTrigger_tags_1[] = {
57
  (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
58
};
59
asn_TYPE_descriptor_t asn_DEF_NGAP_M1ReportingTrigger = {
60
  "M1ReportingTrigger",
61
  "M1ReportingTrigger",
62
  &asn_OP_NativeEnumerated,
63
  asn_DEF_NGAP_M1ReportingTrigger_tags_1,
64
  sizeof(asn_DEF_NGAP_M1ReportingTrigger_tags_1)
65
    /sizeof(asn_DEF_NGAP_M1ReportingTrigger_tags_1[0]), /* 1 */
66
  asn_DEF_NGAP_M1ReportingTrigger_tags_1, /* Same as above */
67
  sizeof(asn_DEF_NGAP_M1ReportingTrigger_tags_1)
68
    /sizeof(asn_DEF_NGAP_M1ReportingTrigger_tags_1[0]), /* 1 */
69
  {
70
#if !defined(ASN_DISABLE_OER_SUPPORT)
71
    0,
72
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
73
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
74
    &asn_PER_type_NGAP_M1ReportingTrigger_constr_1,
75
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
76
#if !defined(ASN_DISABLE_JER_SUPPORT)
77
    0,
78
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
79
    asn_validate_NGAP_M1ReportingTrigger_1
80
  },
81
  0, 0, /* Defined elsewhere */
82
  &asn_SPC_NGAP_M1ReportingTrigger_specs_1  /* Additional specs */
83
};
84