diff --git a/contracts/http/mocks/View.go b/contracts/http/mocks/View.go index 2dd084a8a..f2c09202d 100644 --- a/contracts/http/mocks/View.go +++ b/contracts/http/mocks/View.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.14.0. DO NOT EDIT. +// Code generated by mockery v2.33.1. DO NOT EDIT. package mocks @@ -23,18 +23,52 @@ func (_m *View) Exists(view string) bool { return r0 } +// GetShared provides a mock function with given fields: +func (_m *View) GetShared() map[string]interface{} { + ret := _m.Called() + + var r0 map[string]interface{} + if rf, ok := ret.Get(0).(func() map[string]interface{}); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(map[string]interface{}) + } + } + + return r0 +} + // Share provides a mock function with given fields: key, value func (_m *View) Share(key string, value interface{}) { _m.Called(key, value) } -type mockConstructorTestingTNewView interface { - mock.TestingT - Cleanup(func()) +// Shared provides a mock function with given fields: key, def +func (_m *View) Shared(key string, def ...interface{}) interface{} { + var _ca []interface{} + _ca = append(_ca, key) + _ca = append(_ca, def...) + ret := _m.Called(_ca...) + + var r0 interface{} + if rf, ok := ret.Get(0).(func(string, ...interface{}) interface{}); ok { + r0 = rf(key, def...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(interface{}) + } + } + + return r0 } // NewView creates a new instance of View. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func NewView(t mockConstructorTestingTNewView) *View { +// The first argument is typically a *testing.T value. +func NewView(t interface { + mock.TestingT + Cleanup(func()) +}) *View { mock := &View{} mock.Mock.Test(t)