1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- // Code generated by mockery v2.14.0. DO NOT EDIT.
- package mocks
- import (
- context "context"
- mock "github.com/stretchr/testify/mock"
- )
- // Client is an autogenerated mock type for the Client type
- type Client struct {
- mock.Mock
- }
- // Trigger provides a mock function with given fields: ctx, present
- func (_m *Client) Trigger(ctx context.Context, present bool) (string, error) {
- ret := _m.Called(ctx, present)
- var r0 string
- if rf, ok := ret.Get(0).(func(context.Context, bool) string); ok {
- r0 = rf(ctx, present)
- } else {
- r0 = ret.Get(0).(string)
- }
- var r1 error
- if rf, ok := ret.Get(1).(func(context.Context, bool) error); ok {
- r1 = rf(ctx, present)
- } else {
- r1 = ret.Error(1)
- }
- return r0, r1
- }
- type mockConstructorTestingTNewClient interface {
- mock.TestingT
- Cleanup(func())
- }
- // 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.
- func NewClient(t mockConstructorTestingTNewClient) *Client {
- mock := &Client{}
- mock.Mock.Test(t)
- t.Cleanup(func() { mock.AssertExpectations(t) })
- return mock
- }
|