| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204 |
- // Code generated by mockery; DO NOT EDIT.
- // github.com/vektra/mockery
- // template: testify
- package http
- import (
- "context"
- "github.com/mk6i/open-oscar-server/state"
- mock "github.com/stretchr/testify/mock"
- )
- // newMockPopupDisplayer creates a new instance of mockPopupDisplayer. 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 newMockPopupDisplayer(t interface {
- mock.TestingT
- Cleanup(func())
- }) *mockPopupDisplayer {
- if helper, ok := t.(interface{ Helper() }); ok {
- helper.Helper()
- }
- mock := &mockPopupDisplayer{}
- mock.Mock.Test(t)
- t.Cleanup(func() {
- if helper, ok := t.(interface{ Helper() }); ok {
- helper.Helper()
- }
- mock.AssertExpectations(t)
- })
- return mock
- }
- // mockPopupDisplayer is an autogenerated mock type for the PopupDisplayer type
- type mockPopupDisplayer struct {
- mock.Mock
- }
- type mockPopupDisplayer_Expecter struct {
- mock *mock.Mock
- }
- func (_m *mockPopupDisplayer) EXPECT() *mockPopupDisplayer_Expecter {
- return &mockPopupDisplayer_Expecter{mock: &_m.Mock}
- }
- // Display provides a mock function for the type mockPopupDisplayer
- func (_mock *mockPopupDisplayer) Display(ctx context.Context, screenNames []state.IdentScreenName, message string, url string, width uint16, height uint16) error {
- ret := _mock.Called(ctx, screenNames, message, url, width, height)
- if len(ret) == 0 {
- panic("no return value specified for Display")
- }
- var r0 error
- if returnFunc, ok := ret.Get(0).(func(context.Context, []state.IdentScreenName, string, string, uint16, uint16) error); ok {
- r0 = returnFunc(ctx, screenNames, message, url, width, height)
- } else {
- r0 = ret.Error(0)
- }
- return r0
- }
- // mockPopupDisplayer_Display_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Display'
- type mockPopupDisplayer_Display_Call struct {
- *mock.Call
- }
- // Display is a helper method to define mock.On call
- // - ctx context.Context
- // - screenNames []state.IdentScreenName
- // - message string
- // - url string
- // - width uint16
- // - height uint16
- func (_e *mockPopupDisplayer_Expecter) Display(ctx any, screenNames any, message any, url any, width any, height any) *mockPopupDisplayer_Display_Call {
- return &mockPopupDisplayer_Display_Call{Call: _e.mock.On("Display", ctx, screenNames, message, url, width, height)}
- }
- func (_c *mockPopupDisplayer_Display_Call) Run(run func(ctx context.Context, screenNames []state.IdentScreenName, message string, url string, width uint16, height uint16)) *mockPopupDisplayer_Display_Call {
- _c.Call.Run(func(args mock.Arguments) {
- var arg0 context.Context
- if args[0] != nil {
- arg0 = args[0].(context.Context)
- }
- var arg1 []state.IdentScreenName
- if args[1] != nil {
- arg1 = args[1].([]state.IdentScreenName)
- }
- var arg2 string
- if args[2] != nil {
- arg2 = args[2].(string)
- }
- var arg3 string
- if args[3] != nil {
- arg3 = args[3].(string)
- }
- var arg4 uint16
- if args[4] != nil {
- arg4 = args[4].(uint16)
- }
- var arg5 uint16
- if args[5] != nil {
- arg5 = args[5].(uint16)
- }
- run(
- arg0,
- arg1,
- arg2,
- arg3,
- arg4,
- arg5,
- )
- })
- return _c
- }
- func (_c *mockPopupDisplayer_Display_Call) Return(err error) *mockPopupDisplayer_Display_Call {
- _c.Call.Return(err)
- return _c
- }
- func (_c *mockPopupDisplayer_Display_Call) RunAndReturn(run func(ctx context.Context, screenNames []state.IdentScreenName, message string, url string, width uint16, height uint16) error) *mockPopupDisplayer_Display_Call {
- _c.Call.Return(run)
- return _c
- }
- // DisplayAll provides a mock function for the type mockPopupDisplayer
- func (_mock *mockPopupDisplayer) DisplayAll(ctx context.Context, message string, url string, width uint16, height uint16) error {
- ret := _mock.Called(ctx, message, url, width, height)
- if len(ret) == 0 {
- panic("no return value specified for DisplayAll")
- }
- var r0 error
- if returnFunc, ok := ret.Get(0).(func(context.Context, string, string, uint16, uint16) error); ok {
- r0 = returnFunc(ctx, message, url, width, height)
- } else {
- r0 = ret.Error(0)
- }
- return r0
- }
- // mockPopupDisplayer_DisplayAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DisplayAll'
- type mockPopupDisplayer_DisplayAll_Call struct {
- *mock.Call
- }
- // DisplayAll is a helper method to define mock.On call
- // - ctx context.Context
- // - message string
- // - url string
- // - width uint16
- // - height uint16
- func (_e *mockPopupDisplayer_Expecter) DisplayAll(ctx any, message any, url any, width any, height any) *mockPopupDisplayer_DisplayAll_Call {
- return &mockPopupDisplayer_DisplayAll_Call{Call: _e.mock.On("DisplayAll", ctx, message, url, width, height)}
- }
- func (_c *mockPopupDisplayer_DisplayAll_Call) Run(run func(ctx context.Context, message string, url string, width uint16, height uint16)) *mockPopupDisplayer_DisplayAll_Call {
- _c.Call.Run(func(args mock.Arguments) {
- var arg0 context.Context
- if args[0] != nil {
- arg0 = args[0].(context.Context)
- }
- var arg1 string
- if args[1] != nil {
- arg1 = args[1].(string)
- }
- var arg2 string
- if args[2] != nil {
- arg2 = args[2].(string)
- }
- var arg3 uint16
- if args[3] != nil {
- arg3 = args[3].(uint16)
- }
- var arg4 uint16
- if args[4] != nil {
- arg4 = args[4].(uint16)
- }
- run(
- arg0,
- arg1,
- arg2,
- arg3,
- arg4,
- )
- })
- return _c
- }
- func (_c *mockPopupDisplayer_DisplayAll_Call) Return(err error) *mockPopupDisplayer_DisplayAll_Call {
- _c.Call.Return(err)
- return _c
- }
- func (_c *mockPopupDisplayer_DisplayAll_Call) RunAndReturn(run func(ctx context.Context, message string, url string, width uint16, height uint16) error) *mockPopupDisplayer_DisplayAll_Call {
- _c.Call.Return(run)
- return _c
- }
|