github.com/goravel/framework@v1.13.9/contracts/validation/mocks/Errors.go (about)

     1  // Code generated by mockery v2.14.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import mock "github.com/stretchr/testify/mock"
     6  
     7  // Errors is an autogenerated mock type for the Errors type
     8  type Errors struct {
     9  	mock.Mock
    10  }
    11  
    12  // All provides a mock function with given fields:
    13  func (_m *Errors) All() map[string]map[string]string {
    14  	ret := _m.Called()
    15  
    16  	var r0 map[string]map[string]string
    17  	if rf, ok := ret.Get(0).(func() map[string]map[string]string); ok {
    18  		r0 = rf()
    19  	} else {
    20  		if ret.Get(0) != nil {
    21  			r0 = ret.Get(0).(map[string]map[string]string)
    22  		}
    23  	}
    24  
    25  	return r0
    26  }
    27  
    28  // Get provides a mock function with given fields: key
    29  func (_m *Errors) Get(key string) map[string]string {
    30  	ret := _m.Called(key)
    31  
    32  	var r0 map[string]string
    33  	if rf, ok := ret.Get(0).(func(string) map[string]string); ok {
    34  		r0 = rf(key)
    35  	} else {
    36  		if ret.Get(0) != nil {
    37  			r0 = ret.Get(0).(map[string]string)
    38  		}
    39  	}
    40  
    41  	return r0
    42  }
    43  
    44  // Has provides a mock function with given fields: key
    45  func (_m *Errors) Has(key string) bool {
    46  	ret := _m.Called(key)
    47  
    48  	var r0 bool
    49  	if rf, ok := ret.Get(0).(func(string) bool); ok {
    50  		r0 = rf(key)
    51  	} else {
    52  		r0 = ret.Get(0).(bool)
    53  	}
    54  
    55  	return r0
    56  }
    57  
    58  // One provides a mock function with given fields: key
    59  func (_m *Errors) One(key ...string) string {
    60  	_va := make([]interface{}, len(key))
    61  	for _i := range key {
    62  		_va[_i] = key[_i]
    63  	}
    64  	var _ca []interface{}
    65  	_ca = append(_ca, _va...)
    66  	ret := _m.Called(_ca...)
    67  
    68  	var r0 string
    69  	if rf, ok := ret.Get(0).(func(...string) string); ok {
    70  		r0 = rf(key...)
    71  	} else {
    72  		r0 = ret.Get(0).(string)
    73  	}
    74  
    75  	return r0
    76  }
    77  
    78  type mockConstructorTestingTNewErrors interface {
    79  	mock.TestingT
    80  	Cleanup(func())
    81  }
    82  
    83  // NewErrors creates a new instance of Errors. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    84  func NewErrors(t mockConstructorTestingTNewErrors) *Errors {
    85  	mock := &Errors{}
    86  	mock.Mock.Test(t)
    87  
    88  	t.Cleanup(func() { mock.AssertExpectations(t) })
    89  
    90  	return mock
    91  }