Skip to content

Instantly share code, notes, and snippets.

@csmith0651
Last active October 17, 2016 20:12
Show Gist options
  • Save csmith0651/6ae755e661a254ac3ea50a81e6dec579 to your computer and use it in GitHub Desktop.
Save csmith0651/6ae755e661a254ac3ea50a81e6dec579 to your computer and use it in GitHub Desktop.
example of a creating a mock controller for you test suite.
var _ = Describe("Person", func() {
var (
mockFetcher *mock_S3Fetcher.MockS3Fetcher
ctrl *gomock.Controller
)
BeforeEach(func() {
ctrl = gomock.NewController(GinkgoT())
})
AfterEach(func() {
ctrl.Finish()
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment