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

package mocks

import (
	context "context"

	entities "github.com/UpmeshLTD/urus-aio/infrastructure/db/entities"
	gorm "gorm.io/gorm"

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

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

// Create provides a mock function with given fields: ctx, db, entity
func (_m *Repository) Create(ctx context.Context, db *gorm.DB, entity *entities.ShipmentStatusLog) error {
	ret := _m.Called(ctx, db, entity)

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, *gorm.DB, *entities.ShipmentStatusLog) error); ok {
		r0 = rf(ctx, db, entity)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// GetList provides a mock function with given fields: ctx, db, courierTrackingID
func (_m *Repository) GetList(ctx context.Context, db *gorm.DB, courierTrackingID string) ([]*entities.ShipmentStatusLog, error) {
	ret := _m.Called(ctx, db, courierTrackingID)

	var r0 []*entities.ShipmentStatusLog
	if rf, ok := ret.Get(0).(func(context.Context, *gorm.DB, string) []*entities.ShipmentStatusLog); ok {
		r0 = rf(ctx, db, courierTrackingID)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]*entities.ShipmentStatusLog)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(context.Context, *gorm.DB, string) error); ok {
		r1 = rf(ctx, db, courierTrackingID)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// Update provides a mock function with given fields: ctx, db, courierTrackingID, maps
func (_m *Repository) Update(ctx context.Context, db *gorm.DB, courierTrackingID string, maps map[string]interface{}) error {
	ret := _m.Called(ctx, db, courierTrackingID, maps)

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, *gorm.DB, string, map[string]interface{}) error); ok {
		r0 = rf(ctx, db, courierTrackingID, maps)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

type mockConstructorTestingTNewRepository interface {
	mock.TestingT
	Cleanup(func())
}

// NewRepository creates a new instance of Repository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewRepository(t mockConstructorTestingTNewRepository) *Repository {
	mock := &Repository{}
	mock.Mock.Test(t)

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

	return mock
}
