// Code generated by mockery; DO NOT EDIT.
// github.com/vektra/mockery
// template: testify
// Copyright (c) Abstract Machines

// SPDX-License-Identifier: Apache-2.0

package mocks

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

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

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

	return mock
}

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

type Hasher_Expecter struct {
	mock *mock.Mock
}

func (_m *Hasher) EXPECT() *Hasher_Expecter {
	return &Hasher_Expecter{mock: &_m.Mock}
}

// Compare provides a mock function for the type Hasher
func (_mock *Hasher) Compare(s string, s1 string) error {
	ret := _mock.Called(s, s1)

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

	var r0 error
	if returnFunc, ok := ret.Get(0).(func(string, string) error); ok {
		r0 = returnFunc(s, s1)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}

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

// Compare is a helper method to define mock.On call
//   - s string
//   - s1 string
func (_e *Hasher_Expecter) Compare(s interface{}, s1 interface{}) *Hasher_Compare_Call {
	return &Hasher_Compare_Call{Call: _e.mock.On("Compare", s, s1)}
}

func (_c *Hasher_Compare_Call) Run(run func(s string, s1 string)) *Hasher_Compare_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 string
		if args[0] != nil {
			arg0 = args[0].(string)
		}
		var arg1 string
		if args[1] != nil {
			arg1 = args[1].(string)
		}
		run(
			arg0,
			arg1,
		)
	})
	return _c
}

func (_c *Hasher_Compare_Call) Return(err error) *Hasher_Compare_Call {
	_c.Call.Return(err)
	return _c
}

func (_c *Hasher_Compare_Call) RunAndReturn(run func(s string, s1 string) error) *Hasher_Compare_Call {
	_c.Call.Return(run)
	return _c
}

// Hash provides a mock function for the type Hasher
func (_mock *Hasher) Hash(s string) (string, error) {
	ret := _mock.Called(s)

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

	var r0 string
	var r1 error
	if returnFunc, ok := ret.Get(0).(func(string) (string, error)); ok {
		return returnFunc(s)
	}
	if returnFunc, ok := ret.Get(0).(func(string) string); ok {
		r0 = returnFunc(s)
	} else {
		r0 = ret.Get(0).(string)
	}
	if returnFunc, ok := ret.Get(1).(func(string) error); ok {
		r1 = returnFunc(s)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}

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

// Hash is a helper method to define mock.On call
//   - s string
func (_e *Hasher_Expecter) Hash(s interface{}) *Hasher_Hash_Call {
	return &Hasher_Hash_Call{Call: _e.mock.On("Hash", s)}
}

func (_c *Hasher_Hash_Call) Run(run func(s string)) *Hasher_Hash_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 string
		if args[0] != nil {
			arg0 = args[0].(string)
		}
		run(
			arg0,
		)
	})
	return _c
}

func (_c *Hasher_Hash_Call) Return(s1 string, err error) *Hasher_Hash_Call {
	_c.Call.Return(s1, err)
	return _c
}

func (_c *Hasher_Hash_Call) RunAndReturn(run func(s string) (string, error)) *Hasher_Hash_Call {
	_c.Call.Return(run)
	return _c
}
