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