// Code generated by mockery; DO NOT EDIT. // github.com/vektra/mockery // template: testify package mocks import ( "context" mock "github.com/stretchr/testify/mock" ) // NewMockPermissionPopup creates a new instance of MockPermissionPopup. 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 NewMockPermissionPopup(t interface { mock.TestingT Cleanup(func()) }) *MockPermissionPopup { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock := &MockPermissionPopup{} mock.Mock.Test(t) t.Cleanup(func() { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock.AssertExpectations(t) }) return mock } // MockPermissionPopup is an autogenerated mock type for the permissionPopup type type MockPermissionPopup struct { mock.Mock } type MockPermissionPopup_Expecter struct { mock *mock.Mock } func (_m *MockPermissionPopup) EXPECT() *MockPermissionPopup_Expecter { return &MockPermissionPopup_Expecter{mock: &_m.Mock} } // Show provides a mock function for the type MockPermissionPopup func (_mock *MockPermissionPopup) Show(ctx context.Context, heading string, body string, persistable bool, callback func(allowed bool, persistent bool)) { _mock.Called(ctx, heading, body, persistable, callback) return } // MockPermissionPopup_Show_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Show' type MockPermissionPopup_Show_Call struct { *mock.Call } // Show is a helper method to define mock.On call // - ctx context.Context // - heading string // - body string // - persistable bool // - callback func(allowed bool, persistent bool) func (_e *MockPermissionPopup_Expecter) Show(ctx any, heading any, body any, persistable any, callback any) *MockPermissionPopup_Show_Call { return &MockPermissionPopup_Show_Call{Call: _e.mock.On("Show", ctx, heading, body, persistable, callback)} } func (_c *MockPermissionPopup_Show_Call) Run(run func(ctx context.Context, heading string, body string, persistable bool, callback func(allowed bool, persistent bool))) *MockPermissionPopup_Show_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 bool if args[3] != nil { arg3 = args[3].(bool) } var arg4 func(allowed bool, persistent bool) if args[4] != nil { arg4 = args[4].(func(allowed bool, persistent bool)) } run( arg0, arg1, arg2, arg3, arg4, ) }) return _c } func (_c *MockPermissionPopup_Show_Call) Return() *MockPermissionPopup_Show_Call { _c.Call.Return() return _c } func (_c *MockPermissionPopup_Show_Call) RunAndReturn(run func(ctx context.Context, heading string, body string, persistable bool, callback func(allowed bool, persistent bool))) *MockPermissionPopup_Show_Call { _c.Run(run) return _c }