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

pinterest / thrift-tools / 96
82%

Build:
DEFAULT BRANCH: master
Ran 28 Aug 2019 09:34PM UTC
Jobs 4
Files 22
Run time 2min
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
96

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)

255 of 255 new or added lines in 9 files covered. (100.0%)

1212 of 1463 relevant lines covered (82.84%)

3.31 hits per line

Jobs
ID Job ID Ran Files Coverage
1 96.1 28 Aug 2019 09:34PM UTC 0
82.37
Travis Job 96.1
2 96.2 28 Aug 2019 09:35PM UTC 0
82.84
Travis Job 96.2
3 96.3 28 Aug 2019 09:36PM UTC 0
82.84
Travis Job 96.3
4 96.4 28 Aug 2019 09:37PM UTC 0
82.84
Travis Job 96.4
Source Files on build 96
  • Tree
  • List 0
  • Changed 9
  • Source Changed 7
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #96
  • 2fad1bc6 on github
  • Prev Build on master (#93)
  • Next Build on master (#99)
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