client.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // Code generated by mockery v2.14.0. DO NOT EDIT.
  2. package mocks
  3. import (
  4. context "context"
  5. mock "github.com/stretchr/testify/mock"
  6. )
  7. // Client is an autogenerated mock type for the Client type
  8. type Client struct {
  9. mock.Mock
  10. }
  11. // Trigger provides a mock function with given fields: ctx, present
  12. func (_m *Client) Trigger(ctx context.Context, present bool) (string, error) {
  13. ret := _m.Called(ctx, present)
  14. var r0 string
  15. if rf, ok := ret.Get(0).(func(context.Context, bool) string); ok {
  16. r0 = rf(ctx, present)
  17. } else {
  18. r0 = ret.Get(0).(string)
  19. }
  20. var r1 error
  21. if rf, ok := ret.Get(1).(func(context.Context, bool) error); ok {
  22. r1 = rf(ctx, present)
  23. } else {
  24. r1 = ret.Error(1)
  25. }
  26. return r0, r1
  27. }
  28. type mockConstructorTestingTNewClient interface {
  29. mock.TestingT
  30. Cleanup(func())
  31. }
  32. // NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
  33. func NewClient(t mockConstructorTestingTNewClient) *Client {
  34. mock := &Client{}
  35. mock.Mock.Test(t)
  36. t.Cleanup(func() { mock.AssertExpectations(t) })
  37. return mock
  38. }