-
Notifications
You must be signed in to change notification settings - Fork 26
/
QueryResultHandle.go
42 lines (32 loc) · 1.06 KB
/
QueryResultHandle.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Code generated by mockery v2.28.1. DO NOT EDIT.
package mocks
import (
zcncore "github.com/0chain/gosdk/zcncore"
mock "github.com/stretchr/testify/mock"
)
// QueryResultHandle is an autogenerated mock type for the QueryResultHandle type
type QueryResultHandle struct {
mock.Mock
}
// Execute provides a mock function with given fields: result
func (_m *QueryResultHandle) Execute(result zcncore.QueryResult) bool {
ret := _m.Called(result)
var r0 bool
if rf, ok := ret.Get(0).(func(zcncore.QueryResult) bool); ok {
r0 = rf(result)
} else {
r0 = ret.Get(0).(bool)
}
return r0
}
type mockConstructorTestingTNewQueryResultHandle interface {
mock.TestingT
Cleanup(func())
}
// 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.
func NewQueryResultHandle(t mockConstructorTestingTNewQueryResultHandle) *QueryResultHandle {
mock := &QueryResultHandle{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}