github.com/0chain/gosdk@v1.17.11/zcncore/mocks/QueryResultHandle.go (about) 1 // Code generated by mockery v2.28.1. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 zcncore "github.com/0chain/gosdk/zcncore" 7 mock "github.com/stretchr/testify/mock" 8 ) 9 10 // QueryResultHandle is an autogenerated mock type for the QueryResultHandle type 11 type QueryResultHandle struct { 12 mock.Mock 13 } 14 15 // Execute provides a mock function with given fields: result 16 func (_m *QueryResultHandle) Execute(result zcncore.QueryResult) bool { 17 ret := _m.Called(result) 18 19 var r0 bool 20 if rf, ok := ret.Get(0).(func(zcncore.QueryResult) bool); ok { 21 r0 = rf(result) 22 } else { 23 r0 = ret.Get(0).(bool) 24 } 25 26 return r0 27 } 28 29 type mockConstructorTestingTNewQueryResultHandle interface { 30 mock.TestingT 31 Cleanup(func()) 32 } 33 34 // NewQueryResultHandle creates a new instance of QueryResultHandle. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 35 func NewQueryResultHandle(t mockConstructorTestingTNewQueryResultHandle) *QueryResultHandle { 36 mock := &QueryResultHandle{} 37 mock.Mock.Test(t) 38 39 t.Cleanup(func() { mock.AssertExpectations(t) }) 40 41 return mock 42 }