Coverage Report

Created: 2026-08-14 06:04

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/open5gs/lib/asn1c/s1ap/S1AP_M3period.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-IEs"
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_M3period.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_M3period_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_S1AP_M3period_value2enum_1[] = {
22
  { 0,  5,  "ms100" },
23
  { 1,  6,  "ms1000" },
24
  { 2,  7,  "ms10000" },
25
  { 3,  6,  "ms1024" },
26
  { 4,  6,  "ms1280" },
27
  { 5,  6,  "ms2048" },
28
  { 6,  6,  "ms2560" },
29
  { 7,  6,  "ms5120" },
30
  { 8,  7,  "ms10240" },
31
  { 9,  4,  "min1" }
32
  /* This list is extensible */
33
};
34
static int asn_validate_S1AP_M3period_1(const asn_TYPE_descriptor_t *td,
35
                       const void *sptr,
36
                       asn_app_constraint_failed_f *ctfailcb,
37
0
                       void* app_key) {
38
0
    if(! sptr) { return -1; }
39
0
    e_S1AP_M3period value = *(e_S1AP_M3period*)sptr;
40
0
    switch(value) {
41
0
    case S1AP_M3period_ms100:
42
0
    case S1AP_M3period_ms1000:
43
0
    case S1AP_M3period_ms10000:
44
0
    case S1AP_M3period_ms1024:
45
0
    case S1AP_M3period_ms1280:
46
0
    case S1AP_M3period_ms2048:
47
0
    case S1AP_M3period_ms2560:
48
0
    case S1AP_M3period_ms5120:
49
0
    case S1AP_M3period_ms10240:
50
0
    case S1AP_M3period_min1:
51
0
        return 0;
52
0
    }
53
0
    return -1;
54
0
}
55
static const unsigned int asn_MAP_S1AP_M3period_enum2value_1[] = {
56
  9,  /* min1(9) */
57
  0,  /* ms100(0) */
58
  1,  /* ms1000(1) */
59
  2,  /* ms10000(2) */
60
  3,  /* ms1024(3) */
61
  8,  /* ms10240(8) */
62
  4,  /* ms1280(4) */
63
  5,  /* ms2048(5) */
64
  6,  /* ms2560(6) */
65
  7 /* ms5120(7) */
66
  /* This list is extensible */
67
};
68
const asn_INTEGER_specifics_t asn_SPC_S1AP_M3period_specs_1 = {
69
  asn_MAP_S1AP_M3period_value2enum_1, /* "tag" => N; sorted by tag */
70
  asn_MAP_S1AP_M3period_enum2value_1, /* N => "tag"; sorted by N */
71
  10, /* Number of elements in the maps */
72
  4,  /* Extensions before this member */
73
  1,  /* Strict enumeration */
74
  0,  /* Native long size */
75
  0
76
};
77
static const ber_tlv_tag_t asn_DEF_S1AP_M3period_tags_1[] = {
78
  (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
79
};
80
asn_TYPE_descriptor_t asn_DEF_S1AP_M3period = {
81
  "M3period",
82
  "M3period",
83
  &asn_OP_NativeEnumerated,
84
  asn_DEF_S1AP_M3period_tags_1,
85
  sizeof(asn_DEF_S1AP_M3period_tags_1)
86
    /sizeof(asn_DEF_S1AP_M3period_tags_1[0]), /* 1 */
87
  asn_DEF_S1AP_M3period_tags_1, /* Same as above */
88
  sizeof(asn_DEF_S1AP_M3period_tags_1)
89
    /sizeof(asn_DEF_S1AP_M3period_tags_1[0]), /* 1 */
90
  {
91
#if !defined(ASN_DISABLE_OER_SUPPORT)
92
    0,
93
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
94
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
95
    &asn_PER_type_S1AP_M3period_constr_1,
96
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
97
#if !defined(ASN_DISABLE_JER_SUPPORT)
98
    0,
99
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
100
    asn_validate_S1AP_M3period_1
101
  },
102
  0, 0, /* Defined elsewhere */
103
  &asn_SPC_S1AP_M3period_specs_1  /* Additional specs */
104
};
105