github.com/hechain20/hechain@v0.0.0-20220316014945-b544036ba106/core/cclifecycle/mocks/query.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import mock "github.com/stretchr/testify/mock"
     6  
     7  // Query is an autogenerated mock type for the Query type
     8  type Query struct {
     9  	mock.Mock
    10  }
    11  
    12  // Done provides a mock function with given fields:
    13  func (_m *Query) Done() {
    14  	_m.Called()
    15  }
    16  
    17  // GetState provides a mock function with given fields: namespace, key
    18  func (_m *Query) GetState(namespace string, key string) ([]byte, error) {
    19  	ret := _m.Called(namespace, key)
    20  
    21  	var r0 []byte
    22  	if rf, ok := ret.Get(0).(func(string, string) []byte); ok {
    23  		r0 = rf(namespace, key)
    24  	} else {
    25  		if ret.Get(0) != nil {
    26  			r0 = ret.Get(0).([]byte)
    27  		}
    28  	}
    29  
    30  	var r1 error
    31  	if rf, ok := ret.Get(1).(func(string, string) error); ok {
    32  		r1 = rf(namespace, key)
    33  	} else {
    34  		r1 = ret.Error(1)
    35  	}
    36  
    37  	return r0, r1
    38  }