// Code generated by mockery v2.53.3. DO NOT EDIT.

package wait

import (
	context "context"

	mock "github.com/stretchr/testify/mock"
)

// MockGracefulExitFunc is an autogenerated mock type for the GracefulExitFunc type
type MockGracefulExitFunc struct {
	mock.Mock
}

type MockGracefulExitFunc_Expecter struct {
	mock *mock.Mock
}

func (_m *MockGracefulExitFunc) EXPECT() *MockGracefulExitFunc_Expecter {
	return &MockGracefulExitFunc_Expecter{mock: &_m.Mock}
}

// Execute provides a mock function with given fields: ctx, containerID
func (_m *MockGracefulExitFunc) Execute(ctx context.Context, containerID string) error {
	ret := _m.Called(ctx, containerID)

	if len(ret) == 0 {
		panic("no return value specified for Execute")
	}

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, string) error); ok {
		r0 = rf(ctx, containerID)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// MockGracefulExitFunc_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
type MockGracefulExitFunc_Execute_Call struct {
	*mock.Call
}

// Execute is a helper method to define mock.On call
//   - ctx context.Context
//   - containerID string
func (_e *MockGracefulExitFunc_Expecter) Execute(ctx interface{}, containerID interface{}) *MockGracefulExitFunc_Execute_Call {
	return &MockGracefulExitFunc_Execute_Call{Call: _e.mock.On("Execute", ctx, containerID)}
}

func (_c *MockGracefulExitFunc_Execute_Call) Run(run func(ctx context.Context, containerID string)) *MockGracefulExitFunc_Execute_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context), args[1].(string))
	})
	return _c
}

func (_c *MockGracefulExitFunc_Execute_Call) Return(_a0 error) *MockGracefulExitFunc_Execute_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *MockGracefulExitFunc_Execute_Call) RunAndReturn(run func(context.Context, string) error) *MockGracefulExitFunc_Execute_Call {
	_c.Call.Return(run)
	return _c
}

// NewMockGracefulExitFunc creates a new instance of MockGracefulExitFunc. 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 NewMockGracefulExitFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockGracefulExitFunc {
	mock := &MockGracefulExitFunc{}
	mock.Mock.Test(t)

	t.Cleanup(func() { mock.AssertExpectations(t) })

	return mock
}
