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

package api

import (
	context "context"

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

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

type MockShutdownCallback_Expecter struct {
	mock *mock.Mock
}

func (_m *MockShutdownCallback) EXPECT() *MockShutdownCallback_Expecter {
	return &MockShutdownCallback_Expecter{mock: &_m.Mock}
}

// Run provides a mock function with given fields: ctx
func (_m *MockShutdownCallback) Run(ctx context.Context) {
	_m.Called(ctx)
}

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

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

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

func (_c *MockShutdownCallback_Run_Call) Return() *MockShutdownCallback_Run_Call {
	_c.Call.Return()
	return _c
}

func (_c *MockShutdownCallback_Run_Call) RunAndReturn(run func(context.Context)) *MockShutdownCallback_Run_Call {
	_c.Run(run)
	return _c
}

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

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

	return mock
}
