blob: d15285054f9760f5c70fe7e00d8bfe06a7e23e08 [file] [log] [blame] [edit]
// Code generated by mockery v0.0.0-dev. DO NOT EDIT.
package mocks
import mock "github.com/stretchr/testify/mock"
// QueryCommand is an autogenerated mock type for the QueryCommand type
type QueryCommand struct {
mock.Mock
}
// Read provides a mock function with given fields:
func (_m *QueryCommand) Read() ([]byte, error) {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for Read")
}
var r0 []byte
var r1 error
if rf, ok := ret.Get(0).(func() ([]byte, error)); ok {
return rf()
}
if rf, ok := ret.Get(0).(func() []byte); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]byte)
}
}
if rf, ok := ret.Get(1).(func() error); ok {
r1 = rf()
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// 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.
// The first argument is typically a *testing.T value.
func NewQueryCommand(t interface {
mock.TestingT
Cleanup(func())
}) *QueryCommand {
mock := &QueryCommand{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}