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

pinterest / thrift-tools / 96 / 4
82%
master: 82%

Build:
DEFAULT BRANCH: master
Ran 28 Aug 2019 09:37PM UTC
Files 22
Run time 1s
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

28 Aug 2019 09:33PM UTC coverage: 82.843% (+1.0%) from 81.811%
96.4

push

travis-ci

rgs1
Add support for Thrift IDL parsing and printing (#17)

This PR adds support for `.thrift` IDL file parsing and printing. Code is not optimized for performance and could use some cleaning up.

This PR closes #11.

Example output:

```sh
FROM_SOURCE=1 bin/thrift-tool --port 9090 --pcap-file thrift_tools/tests/resources/calc-service-binary.pcap dump --show-all --pretty --idl-file=thrift_tools/tests/resources/tutorial.thrift
reading from file thrift_tools/tests/resources/calc-service-binary.pcap, link-type EN10MB (Ethernet)
[00:55:50:387214] 127.0.0.1:51112 -> 127.0.0.1:9090: method=ping, type=call, seqid=0
header: None
fields: []
------>[00:55:50:387370] 127.0.0.1:9090 -> 127.0.0.1:51112: method=ping, type=reply, seqid=0
        header: None
        fields: fields=[]
[00:55:50:387492] 127.0.0.1:51112 -> 127.0.0.1:9090: method=add, type=call, seqid=0
header: None
fields: [('num1', 1), ('num2', 1)]
------>[00:55:50:387596] 127.0.0.1:9090 -> 127.0.0.1:51112: method=add, type=reply, seqid=0
        header: None
        fields: 2
[00:55:50:387696] 127.0.0.1:51112 -> 127.0.0.1:9090: method=calculate, type=call, seqid=0
header: None
fields: [   ('logid', 1),
    (   'w',
        (   'Work',
            [('num1', 1), ('num2', 0), ('op', 'DIVIDE'), ('comment', None)]))]
------>[00:55:50:387840] 127.0.0.1:9090 -> 127.0.0.1:51112: method=calculate, type=reply, seqid=0
        header: None
        fields: ('InvalidOperation', [('whatOp', 4), ('why', 'Cannot divide by 0')])
[00:55:50:388615] 127.0.0.1:51112 -> 127.0.0.1:9090: method=calculate, type=call, seqid=0
header: None
fields: [   ('logid', 1),
    (   'w',
        (   'Work',
            [   ('num1', 15),
                ('num2', 10),
                ('op', 'SUBTRACT'),
                ('comment', None)]))]
------>[00:55:50:388725] 127.0.0.1:9090 -> 127.0.0.1:51112: method=calculate, type=reply, seqid=0
        header: None
        fields: 5
[00:55:50:388811] 127.0.0.1... (continued)

1212 of 1463 relevant lines covered (82.84%)

0.83 hits per line

Source Files on job 96.4
  • Tree
  • List 0
  • Changed 9
  • Source Changed 7
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 91
  • Travis Job 96.4
  • 2fad1bc6 on github
  • Prev Job for on master (#93.1)
  • Next Job for on master (#99.1)
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

© 2025 Coveralls, Inc