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

package mocks

import (
	context "context"

	mock "github.com/stretchr/testify/mock"
	v1alpha5 "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5"
)

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

// Update provides a mock function with given fields: ctx, podIdentityAssociation, stackName, podIdentityAssociationID
func (_m *IAMRoleUpdater) Update(ctx context.Context, podIdentityAssociation v1alpha5.PodIdentityAssociation, stackName string, podIdentityAssociationID string) (string, bool, error) {
	ret := _m.Called(ctx, podIdentityAssociation, stackName, podIdentityAssociationID)

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

	var r0 string
	var r1 bool
	var r2 error
	if rf, ok := ret.Get(0).(func(context.Context, v1alpha5.PodIdentityAssociation, string, string) (string, bool, error)); ok {
		return rf(ctx, podIdentityAssociation, stackName, podIdentityAssociationID)
	}
	if rf, ok := ret.Get(0).(func(context.Context, v1alpha5.PodIdentityAssociation, string, string) string); ok {
		r0 = rf(ctx, podIdentityAssociation, stackName, podIdentityAssociationID)
	} else {
		r0 = ret.Get(0).(string)
	}

	if rf, ok := ret.Get(1).(func(context.Context, v1alpha5.PodIdentityAssociation, string, string) bool); ok {
		r1 = rf(ctx, podIdentityAssociation, stackName, podIdentityAssociationID)
	} else {
		r1 = ret.Get(1).(bool)
	}

	if rf, ok := ret.Get(2).(func(context.Context, v1alpha5.PodIdentityAssociation, string, string) error); ok {
		r2 = rf(ctx, podIdentityAssociation, stackName, podIdentityAssociationID)
	} else {
		r2 = ret.Error(2)
	}

	return r0, r1, r2
}

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

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

	return mock
}
