github.com/goravel/framework@v1.13.9/contracts/hash/mocks/Hash.go (about)

     1  // Code generated by mockery v2.19.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import mock "github.com/stretchr/testify/mock"
     6  
     7  // Hash is an autogenerated mock type for the Hash type
     8  type Hash struct {
     9  	mock.Mock
    10  }
    11  
    12  // Check provides a mock function with given fields: value, hashedValue
    13  func (_m *Hash) Check(value string, hashedValue string) bool {
    14  	ret := _m.Called(value, hashedValue)
    15  
    16  	var r0 bool
    17  	if rf, ok := ret.Get(0).(func(string, string) bool); ok {
    18  		r0 = rf(value, hashedValue)
    19  	} else {
    20  		r0 = ret.Get(0).(bool)
    21  	}
    22  
    23  	return r0
    24  }
    25  
    26  // Make provides a mock function with given fields: value
    27  func (_m *Hash) Make(value string) (string, error) {
    28  	ret := _m.Called(value)
    29  
    30  	var r0 string
    31  	if rf, ok := ret.Get(0).(func(string) string); ok {
    32  		r0 = rf(value)
    33  	} else {
    34  		r0 = ret.Get(0).(string)
    35  	}
    36  
    37  	var r1 error
    38  	if rf, ok := ret.Get(1).(func(string) error); ok {
    39  		r1 = rf(value)
    40  	} else {
    41  		r1 = ret.Error(1)
    42  	}
    43  
    44  	return r0, r1
    45  }
    46  
    47  // NeedsRehash provides a mock function with given fields: hashedValue
    48  func (_m *Hash) NeedsRehash(hashedValue string) bool {
    49  	ret := _m.Called(hashedValue)
    50  
    51  	var r0 bool
    52  	if rf, ok := ret.Get(0).(func(string) bool); ok {
    53  		r0 = rf(hashedValue)
    54  	} else {
    55  		r0 = ret.Get(0).(bool)
    56  	}
    57  
    58  	return r0
    59  }
    60  
    61  type mockConstructorTestingTNewHash interface {
    62  	mock.TestingT
    63  	Cleanup(func())
    64  }
    65  
    66  // NewHash creates a new instance of Hash. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    67  func NewHash(t mockConstructorTestingTNewHash) *Hash {
    68  	mock := &Hash{}
    69  	mock.Mock.Test(t)
    70  
    71  	t.Cleanup(func() { mock.AssertExpectations(t) })
    72  
    73  	return mock
    74  }