// Code generated by mockery; DO NOT EDIT. // github.com/vektra/mockery // template: testify package client import ( mock "github.com/stretchr/testify/mock" ) // newMockattachmentPredictionForeground creates a new instance of mockattachmentPredictionForeground. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. func newMockattachmentPredictionForeground(t interface { mock.TestingT Cleanup(func()) }) *mockattachmentPredictionForeground { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock := &mockattachmentPredictionForeground{} mock.Mock.Test(t) t.Cleanup(func() { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock.AssertExpectations(t) }) return mock } // mockattachmentPredictionForeground is an autogenerated mock type for the attachmentPredictionForeground type type mockattachmentPredictionForeground struct { mock.Mock } type mockattachmentPredictionForeground_Expecter struct { mock *mock.Mock } func (_m *mockattachmentPredictionForeground) EXPECT() *mockattachmentPredictionForeground_Expecter { return &mockattachmentPredictionForeground_Expecter{mock: &_m.Mock} } // writePrediction provides a mock function for the type mockattachmentPredictionForeground func (_mock *mockattachmentPredictionForeground) writePrediction(data []byte) (bool, error) { ret := _mock.Called(data) if len(ret) == 0 { panic("no return value specified for writePrediction") } var r0 bool var r1 error if returnFunc, ok := ret.Get(0).(func([]byte) (bool, error)); ok { return returnFunc(data) } if returnFunc, ok := ret.Get(0).(func([]byte) bool); ok { r0 = returnFunc(data) } else { r0 = ret.Get(0).(bool) } if returnFunc, ok := ret.Get(1).(func([]byte) error); ok { r1 = returnFunc(data) } else { r1 = ret.Error(1) } return r0, r1 } // mockattachmentPredictionForeground_writePrediction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'writePrediction' type mockattachmentPredictionForeground_writePrediction_Call struct { *mock.Call } // writePrediction is a helper method to define mock.On call // - data []byte func (_e *mockattachmentPredictionForeground_Expecter) writePrediction(data any) *mockattachmentPredictionForeground_writePrediction_Call { return &mockattachmentPredictionForeground_writePrediction_Call{Call: _e.mock.On("writePrediction", data)} } func (_c *mockattachmentPredictionForeground_writePrediction_Call) Run(run func(data []byte)) *mockattachmentPredictionForeground_writePrediction_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 []byte if args[0] != nil { arg0 = args[0].([]byte) } run( arg0, ) }) return _c } func (_c *mockattachmentPredictionForeground_writePrediction_Call) Return(b bool, err error) *mockattachmentPredictionForeground_writePrediction_Call { _c.Call.Return(b, err) return _c } func (_c *mockattachmentPredictionForeground_writePrediction_Call) RunAndReturn(run func(data []byte) (bool, error)) *mockattachmentPredictionForeground_writePrediction_Call { _c.Call.Return(run) return _c }