github.com/mattermost/mattermost-server/v6@v6.7.2/einterfaces/mocks/AppContextInterface.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 // Regenerate this file using `make einterfaces-mocks`. 4 5 package mocks 6 7 import ( 8 model "github.com/mattermost/mattermost-server/v6/model" 9 mock "github.com/stretchr/testify/mock" 10 ) 11 12 // AppContextInterface is an autogenerated mock type for the AppContextInterface type 13 type AppContextInterface struct { 14 mock.Mock 15 } 16 17 // AcceptLanguage provides a mock function with given fields: 18 func (_m *AppContextInterface) AcceptLanguage() string { 19 ret := _m.Called() 20 21 var r0 string 22 if rf, ok := ret.Get(0).(func() string); ok { 23 r0 = rf() 24 } else { 25 r0 = ret.Get(0).(string) 26 } 27 28 return r0 29 } 30 31 // IPAddress provides a mock function with given fields: 32 func (_m *AppContextInterface) IPAddress() string { 33 ret := _m.Called() 34 35 var r0 string 36 if rf, ok := ret.Get(0).(func() string); ok { 37 r0 = rf() 38 } else { 39 r0 = ret.Get(0).(string) 40 } 41 42 return r0 43 } 44 45 // Path provides a mock function with given fields: 46 func (_m *AppContextInterface) Path() string { 47 ret := _m.Called() 48 49 var r0 string 50 if rf, ok := ret.Get(0).(func() string); ok { 51 r0 = rf() 52 } else { 53 r0 = ret.Get(0).(string) 54 } 55 56 return r0 57 } 58 59 // RequestId provides a mock function with given fields: 60 func (_m *AppContextInterface) RequestId() string { 61 ret := _m.Called() 62 63 var r0 string 64 if rf, ok := ret.Get(0).(func() string); ok { 65 r0 = rf() 66 } else { 67 r0 = ret.Get(0).(string) 68 } 69 70 return r0 71 } 72 73 // Session provides a mock function with given fields: 74 func (_m *AppContextInterface) Session() *model.Session { 75 ret := _m.Called() 76 77 var r0 *model.Session 78 if rf, ok := ret.Get(0).(func() *model.Session); ok { 79 r0 = rf() 80 } else { 81 if ret.Get(0) != nil { 82 r0 = ret.Get(0).(*model.Session) 83 } 84 } 85 86 return r0 87 } 88 89 // T provides a mock function with given fields: translationID, args 90 func (_m *AppContextInterface) T(translationID string, args ...interface{}) string { 91 var _ca []interface{} 92 _ca = append(_ca, translationID) 93 _ca = append(_ca, args...) 94 ret := _m.Called(_ca...) 95 96 var r0 string 97 if rf, ok := ret.Get(0).(func(string, ...interface{}) string); ok { 98 r0 = rf(translationID, args...) 99 } else { 100 r0 = ret.Get(0).(string) 101 } 102 103 return r0 104 } 105 106 // UserAgent provides a mock function with given fields: 107 func (_m *AppContextInterface) UserAgent() string { 108 ret := _m.Called() 109 110 var r0 string 111 if rf, ok := ret.Get(0).(func() string); ok { 112 r0 = rf() 113 } else { 114 r0 = ret.Get(0).(string) 115 } 116 117 return r0 118 }