github.com/goravel/framework@v1.13.9/contracts/database/orm/mocks/Association.go (about) 1 // Code generated by mockery v2.30.1. DO NOT EDIT. 2 3 package mocks 4 5 import mock "github.com/stretchr/testify/mock" 6 7 // Association is an autogenerated mock type for the Association type 8 type Association struct { 9 mock.Mock 10 } 11 12 // Append provides a mock function with given fields: values 13 func (_m *Association) Append(values ...interface{}) error { 14 var _ca []interface{} 15 _ca = append(_ca, values...) 16 ret := _m.Called(_ca...) 17 18 var r0 error 19 if rf, ok := ret.Get(0).(func(...interface{}) error); ok { 20 r0 = rf(values...) 21 } else { 22 r0 = ret.Error(0) 23 } 24 25 return r0 26 } 27 28 // Clear provides a mock function with given fields: 29 func (_m *Association) Clear() error { 30 ret := _m.Called() 31 32 var r0 error 33 if rf, ok := ret.Get(0).(func() error); ok { 34 r0 = rf() 35 } else { 36 r0 = ret.Error(0) 37 } 38 39 return r0 40 } 41 42 // Count provides a mock function with given fields: 43 func (_m *Association) Count() int64 { 44 ret := _m.Called() 45 46 var r0 int64 47 if rf, ok := ret.Get(0).(func() int64); ok { 48 r0 = rf() 49 } else { 50 r0 = ret.Get(0).(int64) 51 } 52 53 return r0 54 } 55 56 // Delete provides a mock function with given fields: values 57 func (_m *Association) Delete(values ...interface{}) error { 58 var _ca []interface{} 59 _ca = append(_ca, values...) 60 ret := _m.Called(_ca...) 61 62 var r0 error 63 if rf, ok := ret.Get(0).(func(...interface{}) error); ok { 64 r0 = rf(values...) 65 } else { 66 r0 = ret.Error(0) 67 } 68 69 return r0 70 } 71 72 // Find provides a mock function with given fields: out, conds 73 func (_m *Association) Find(out interface{}, conds ...interface{}) error { 74 var _ca []interface{} 75 _ca = append(_ca, out) 76 _ca = append(_ca, conds...) 77 ret := _m.Called(_ca...) 78 79 var r0 error 80 if rf, ok := ret.Get(0).(func(interface{}, ...interface{}) error); ok { 81 r0 = rf(out, conds...) 82 } else { 83 r0 = ret.Error(0) 84 } 85 86 return r0 87 } 88 89 // Replace provides a mock function with given fields: values 90 func (_m *Association) Replace(values ...interface{}) error { 91 var _ca []interface{} 92 _ca = append(_ca, values...) 93 ret := _m.Called(_ca...) 94 95 var r0 error 96 if rf, ok := ret.Get(0).(func(...interface{}) error); ok { 97 r0 = rf(values...) 98 } else { 99 r0 = ret.Error(0) 100 } 101 102 return r0 103 } 104 105 // NewAssociation creates a new instance of Association. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 106 // The first argument is typically a *testing.T value. 107 func NewAssociation(t interface { 108 mock.TestingT 109 Cleanup(func()) 110 }) *Association { 111 mock := &Association{} 112 mock.Mock.Test(t) 113 114 t.Cleanup(func() { mock.AssertExpectations(t) }) 115 116 return mock 117 }