Skip to content

Commit

Permalink
Add APICallCloser mock
Browse files Browse the repository at this point in the history
  • Loading branch information
hmlanigan committed Jan 18, 2019
1 parent abf5bfb commit 4b448c3
Show file tree
Hide file tree
Showing 2 changed files with 132 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/base/clientfacade.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type APICallCloser interface {
// They provide two common methods for writing the client side code.
// BestAPIVersion() is used to allow for compatibility testing, and Close() is
// used to indicate when we are done with the connection.
//go:generate mockgen -package mocks -destination mocks/clientfacade_mock.go github.com/juju/juju/api/base ClientFacade
//go:generate mockgen -package mocks -destination mocks/clientfacade_mock.go github.com/juju/juju/api/base APICallCloser,ClientFacade
type ClientFacade interface {
// BestAPIVersion returns the API version that we were able to
// determine is supported by both the client and the API Server
Expand Down
134 changes: 131 additions & 3 deletions api/base/mocks/clientfacade_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4b448c3

Please sign in to comment.