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

package mocks

import (
	context "context"

	model "github.com/charmingruby/homunc/apps/fraud/internal/fraud/model"
	mock "github.com/stretchr/testify/mock"

	repository "github.com/charmingruby/homunc/apps/fraud/internal/fraud/repository"
)

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

// Create provides a mock function with given fields: ctx, blockedSource
func (_m *BlockedSourceRepo) Create(ctx context.Context, blockedSource model.BlockedSource) error {
	ret := _m.Called(ctx, blockedSource)

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

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

	return r0
}

// FindByCheckoutDetails provides a mock function with given fields: ctx, checkoutDetails
func (_m *BlockedSourceRepo) FindByCheckoutDetails(ctx context.Context, checkoutDetails repository.CheckoutDetails) (model.BlockedSource, error) {
	ret := _m.Called(ctx, checkoutDetails)

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

	var r0 model.BlockedSource
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, repository.CheckoutDetails) (model.BlockedSource, error)); ok {
		return rf(ctx, checkoutDetails)
	}
	if rf, ok := ret.Get(0).(func(context.Context, repository.CheckoutDetails) model.BlockedSource); ok {
		r0 = rf(ctx, checkoutDetails)
	} else {
		r0 = ret.Get(0).(model.BlockedSource)
	}

	if rf, ok := ret.Get(1).(func(context.Context, repository.CheckoutDetails) error); ok {
		r1 = rf(ctx, checkoutDetails)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// Update provides a mock function with given fields: ctx, blockedSource
func (_m *BlockedSourceRepo) Update(ctx context.Context, blockedSource model.BlockedSource) error {
	ret := _m.Called(ctx, blockedSource)

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

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

	return r0
}

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

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

	return mock
}
