Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 525 Bytes

MOCK_GENERATION.md

File metadata and controls

13 lines (8 loc) · 525 Bytes

Client Mock Generation

go-mock is used to generate mocks of the Styra client.

Generate mocks

Mocks are generated during make generate. Generator calls should be added to pkg/client/mock/generate.go.

Mock generation for Styra should look like this:

//go:generate go run -tags generate github.com/golang/mock/mockgen -package MOCK_API -destination ./systems/mock.go github.com/mistermx/styra-go-client/pkg/client/MOCK_API ClientService