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

package mocks

import (
	context "context"

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

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

type NodeGroupDrainer_Expecter struct {
	mock *mock.Mock
}

func (_m *NodeGroupDrainer) EXPECT() *NodeGroupDrainer_Expecter {
	return &NodeGroupDrainer_Expecter{mock: &_m.Mock}
}

// Drain provides a mock function with given fields: ctx
func (_m *NodeGroupDrainer) Drain(ctx context.Context) error {
	ret := _m.Called(ctx)

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

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

	return r0
}

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

// Drain is a helper method to define mock.On call
//   - ctx context.Context
func (_e *NodeGroupDrainer_Expecter) Drain(ctx interface{}) *NodeGroupDrainer_Drain_Call {
	return &NodeGroupDrainer_Drain_Call{Call: _e.mock.On("Drain", ctx)}
}

func (_c *NodeGroupDrainer_Drain_Call) Run(run func(ctx context.Context)) *NodeGroupDrainer_Drain_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context))
	})
	return _c
}

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

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

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

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

	return mock
}
