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

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

Build:
Build:
LAST BUILD BRANCH: nooptrace
DEFAULT BRANCH: master
Ran 12 Jan 2017 01:20AM UTC
Jobs 2
Files 136
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
3894

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%)

1.74 hits per line

Jobs
ID Job ID Ran Files Coverage
3 3894.3 (TYPE=test) 12 Jan 2017 01:20AM UTC 0
81.32
Travis Job 3894.3
4 3894.4 (TYPE=test) 12 Jan 2017 01:22AM UTC 0
81.32
Travis Job 3894.4
Source Files on build 3894
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3894
  • f7478302 on github
  • Prev Build on dev (#3891)
  • Next Build on dev (#3909)
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