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

vlm / asn1c / 670
71%

Build:
DEFAULT BRANCH: master
Ran 11 Jan 2018 10:21AM UTC
Jobs 1
Files 64
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
670

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)

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

8230 of 11551 relevant lines covered (71.25%)

28068.34 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
3
100.0
libasn1compiler/asn1c_ioc.c
4
100.0
libasn1fix/asn1fix_param.c
14
100.0
libasn1compiler/asn1c_naming.c
16
100.0
libasn1compiler/asn1c_misc.c
26
100.0
libasn1compiler/asn1compiler.c
88
100.0
libasn1compiler/asn1c_C.c
90
100.0
libasn1compiler/asn1c_save.c
Jobs
ID Job ID Ran Files Coverage
1 670.1 (TASK=check CONFIG_FLAGS="--enable-Werror --enable-test-Werror --enable-code-coverage") 11 Jan 2018 10:21AM UTC 0
71.25
Travis Job 670.1
Source Files on build 670
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #670
  • Pull Request #234
  • PR Base - master (#653)
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