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

yarpc / yarpc-go / 3894 / 4
81%
master: %

Build:
Build:
LAST BUILD BRANCH: nooptrace
DEFAULT BRANCH: master
Ran 12 Jan 2017 01:22AM UTC
Files 136
Run time 12s
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

12 Jan 2017 01:16AM UTC coverage: 81.321% (-0.3%) from 81.59%
TYPE=test

push

travis-ci

web-flow
thriftrw: Generate mock clients (#697)

This changes the ThriftRW plugin to generate gomock-compatible mock clients
for all services by default. This can be disabled with the `-no-gomock` flag.

For each service, we now generate a `${service}test` subpackage next to the
server and client packages with contents similar to,

    package ${service}test

    type MockClient struct {  // implements ${service}client.Interface
        // ..
    }

    func NewMockClient(mockCtrl *gomock.Controller) *MockClient {
        // ...
    }

Note that the client mocks are named MockClient rather than MockInterface.
This is to leave room for adding fake/mock servers inside the same package
instead of creating a new package.

The generated code is essentially the same as what `mockgen` would generate
given those interfaces.

Depends on #696

6169 of 7586 relevant lines covered (81.32%)

0.87 hits per line

Source Files on job 3894.4 (TYPE=test)
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 3894
  • Travis Job 3894.4
  • f7478302 on github
  • Prev Job for TYPE=test on dev (#3891.4)
  • Next Job for TYPE=test on dev (#3909.3)
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