// Code generated by mockery; DO NOT EDIT. // github.com/vektra/mockery // template: testify package drm import ( mock "github.com/stretchr/testify/mock" ) // newMockcursorImages creates a new instance of mockcursorImages. 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 newMockcursorImages(t interface { mock.TestingT Cleanup(func()) }) *mockcursorImages { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock := &mockcursorImages{} mock.Mock.Test(t) t.Cleanup(func() { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock.AssertExpectations(t) }) return mock } // mockcursorImages is an autogenerated mock type for the cursorImages type type mockcursorImages struct { mock.Mock } type mockcursorImages_Expecter struct { mock *mock.Mock } func (_m *mockcursorImages) EXPECT() *mockcursorImages_Expecter { return &mockcursorImages_Expecter{mock: &_m.Mock} } // close provides a mock function for the type mockcursorImages func (_mock *mockcursorImages) close() { _mock.Called() return } // mockcursorImages_close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'close' type mockcursorImages_close_Call struct { *mock.Call } // close is a helper method to define mock.On call func (_e *mockcursorImages_Expecter) close() *mockcursorImages_close_Call { return &mockcursorImages_close_Call{Call: _e.mock.On("close")} } func (_c *mockcursorImages_close_Call) Run(run func()) *mockcursorImages_close_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *mockcursorImages_close_Call) Return() *mockcursorImages_close_Call { _c.Call.Return() return _c } func (_c *mockcursorImages_close_Call) RunAndReturn(run func()) *mockcursorImages_close_Call { _c.Run(run) return _c } // fb provides a mock function for the type mockcursorImages func (_mock *mockcursorImages) fb(i int) uint32 { ret := _mock.Called(i) if len(ret) == 0 { panic("no return value specified for fb") } var r0 uint32 if returnFunc, ok := ret.Get(0).(func(int) uint32); ok { r0 = returnFunc(i) } else { r0 = ret.Get(0).(uint32) } return r0 } // mockcursorImages_fb_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'fb' type mockcursorImages_fb_Call struct { *mock.Call } // fb is a helper method to define mock.On call // - i int func (_e *mockcursorImages_Expecter) fb(i any) *mockcursorImages_fb_Call { return &mockcursorImages_fb_Call{Call: _e.mock.On("fb", i)} } func (_c *mockcursorImages_fb_Call) Run(run func(i int)) *mockcursorImages_fb_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 int if args[0] != nil { arg0 = args[0].(int) } run( arg0, ) }) return _c } func (_c *mockcursorImages_fb_Call) Return(v uint32) *mockcursorImages_fb_Call { _c.Call.Return(v) return _c } func (_c *mockcursorImages_fb_Call) RunAndReturn(run func(i int) uint32) *mockcursorImages_fb_Call { _c.Call.Return(run) return _c } // write provides a mock function for the type mockcursorImages func (_mock *mockcursorImages) write(i int, pixels []byte, w int, h int, hdrNits float64) error { ret := _mock.Called(i, pixels, w, h, hdrNits) if len(ret) == 0 { panic("no return value specified for write") } var r0 error if returnFunc, ok := ret.Get(0).(func(int, []byte, int, int, float64) error); ok { r0 = returnFunc(i, pixels, w, h, hdrNits) } else { r0 = ret.Error(0) } return r0 } // mockcursorImages_write_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'write' type mockcursorImages_write_Call struct { *mock.Call } // write is a helper method to define mock.On call // - i int // - pixels []byte // - w int // - h int // - hdrNits float64 func (_e *mockcursorImages_Expecter) write(i any, pixels any, w any, h any, hdrNits any) *mockcursorImages_write_Call { return &mockcursorImages_write_Call{Call: _e.mock.On("write", i, pixels, w, h, hdrNits)} } func (_c *mockcursorImages_write_Call) Run(run func(i int, pixels []byte, w int, h int, hdrNits float64)) *mockcursorImages_write_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 int if args[0] != nil { arg0 = args[0].(int) } var arg1 []byte if args[1] != nil { arg1 = args[1].([]byte) } var arg2 int if args[2] != nil { arg2 = args[2].(int) } var arg3 int if args[3] != nil { arg3 = args[3].(int) } var arg4 float64 if args[4] != nil { arg4 = args[4].(float64) } run( arg0, arg1, arg2, arg3, arg4, ) }) return _c } func (_c *mockcursorImages_write_Call) Return(err error) *mockcursorImages_write_Call { _c.Call.Return(err) return _c } func (_c *mockcursorImages_write_Call) RunAndReturn(run func(i int, pixels []byte, w int, h int, hdrNits float64) error) *mockcursorImages_write_Call { _c.Call.Return(run) return _c }