• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Code generated by mockery v0.0.0-dev. DO NOT EDIT.
2
3package mocks
4
5import mock "github.com/stretchr/testify/mock"
6
7// QueryCommand is an autogenerated mock type for the QueryCommand type
8type QueryCommand struct {
9	mock.Mock
10}
11
12// Read provides a mock function with given fields:
13func (_m *QueryCommand) Read() ([]byte, error) {
14	ret := _m.Called()
15
16	if len(ret) == 0 {
17		panic("no return value specified for Read")
18	}
19
20	var r0 []byte
21	var r1 error
22	if rf, ok := ret.Get(0).(func() ([]byte, error)); ok {
23		return rf()
24	}
25	if rf, ok := ret.Get(0).(func() []byte); ok {
26		r0 = rf()
27	} else {
28		if ret.Get(0) != nil {
29			r0 = ret.Get(0).([]byte)
30		}
31	}
32
33	if rf, ok := ret.Get(1).(func() error); ok {
34		r1 = rf()
35	} else {
36		r1 = ret.Error(1)
37	}
38
39	return r0, r1
40}
41
42// NewQueryCommand creates a new instance of QueryCommand. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
43// The first argument is typically a *testing.T value.
44func NewQueryCommand(t interface {
45	mock.TestingT
46	Cleanup(func())
47}) *QueryCommand {
48	mock := &QueryCommand{}
49	mock.Mock.Test(t)
50
51	t.Cleanup(func() { mock.AssertExpectations(t) })
52
53	return mock
54}
55