• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

vlm / asn1c / 599
71%

Build:
DEFAULT BRANCH: master
Ran 12 Nov 2017 02:38PM UTC
Jobs 1
Files 63
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
599

Pull #234

travis-ci

web-flow
Use comprehensible names for instances of parameterized types

With previous commit, the following data types are generated in ProtocolIE-Field.h
for S1AP's ASN.1 :

```
typedef enum ProtocolIE_Field_6564P0__value_PR {
    ProtocolIE_Field_6564P0__value_PR_NOTHING, /* No components present */
    ProtocolIE_Field_6564P0__value_PR_E_RABToBeSetupItemBearerSUReq
} ProtocolIE_Field_6564P0__value_PR;

typedef struct ProtocolIE_Field_6564P0 {
    ProtocolIE_ID_t      id;
    Criticality_t        criticality;
    struct ProtocolIE_Field_6564P0__value {
        ProtocolIE_Field_6564P0__value_PR        present;
        union ProtocolIE_Field_6564P0__value_u {
            E_RABToBeSetupItemBearerSUReq_t      E_RABToBeSetupItemBearerSUReq;
        } choice;

        /* Context for parsing across buffer boundaries */
        asn_struct_ctx_t _asn_ctx;
    } value;

    /* Context for parsing across buffer boundaries */
    asn_struct_ctx_t _asn_ctx;
} ProtocolIE_Field_6564P0_t;

```

It's difficult for developer to recognize to which ASN.1 type they are linked.
They all start with 'ProtocolIE_Field_'. It will be error-prone.

With this commit, more human comprehensible data types are generated :

```

typedef enum E_RABToBeSetupItemBearerSUReqIEs_6564P0__value_PR {
    E_RABToBeSetupItemBearerSUReqIEs_6564P0__value_PR_NOTHING, /* No components present */
    E_RABToBeSetupItemBearerSUReqIEs_6564P0__value_PR_E_RABToBeSetupItemBearerSUReq
} E_RABToBeSetupItemBearerSUReqIEs_6564P0__value_PR;

typedef struct E_RABToBeSetupItemBearerSUReqIEs_6564P0 {
    ProtocolIE_ID_t      id;
    Criticality_t        criticality;
    struct E_RABToBeSetupItemBearerSUReqIEs_6564P0__value {
        E_RABToBeSetupItemBearerSUReqIEs_6564P0__value_PR present;
        union E_RABToBeSetupItemBearerSUReqIEs_6564P0__value_u {
            E_RABToBeSetupItemBearerSUReq_t               E_RABToBeSetupItemBearerSUReq;
        } choice;

        /* Context for parsing across buffer boundaries */... (continued)
Pull Request #234: Fix s1ap code generation (2nd pull reuqest)

129 of 129 new or added lines in 10 files covered. (100.0%)

8102 of 11338 relevant lines covered (71.46%)

27883.54 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
libasn1compiler/asn1c_naming.c
1
100.0
libasn1fix/asn1fix_cws.c
1
100.0
libasn1parser/asn1p_constr.c
1
100.0
libasn1parser/asn1p_expr.c
2
100.0
libasn1compiler/asn1c_save.c
2
100.0
libasn1fix/asn1fix_param.c
4
100.0
libasn1compiler/asn1c_C.c
5
100.0
libasn1compiler/asn1c_misc.c

Uncovered Existing Lines

Lines Coverage ∆ File
2
100.0
libasn1compiler/asn1c_naming.c
3
100.0
libasn1compiler/asn1c_ioc.c
4
100.0
libasn1fix/asn1fix_param.c
12
100.0
libasn1fix/asn1fix_cws.c
13
100.0
libasn1compiler/asn1compiler.c
16
100.0
libasn1compiler/asn1c_misc.c
30
100.0
libasn1fix/asn1fix_retrieve.c
32
100.0
libasn1fix/check_fixer.c
44
100.0
libasn1parser/asn1p_y.c
58
100.0
asn1c/asn1c.c
81
100.0
libasn1compiler/asn1c_save.c
88
100.0
libasn1compiler/asn1c_C.c
Jobs
ID Job ID Ran Files Coverage
1 599.1 (TASK=check CONFIG_FLAGS="--enable-Werror --enable-test-Werror --enable-code-coverage") 12 Nov 2017 02:38PM UTC 0
71.46
Travis Job 599.1
Source Files on build 599
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #599
  • Pull Request #234
  • PR Base - master (#573)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc