github.com/outbrain/consul@v1.4.5/agent/cache/mock_Type.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  package cache
     3  
     4  import mock "github.com/stretchr/testify/mock"
     5  
     6  // MockType is an autogenerated mock type for the Type type
     7  type MockType struct {
     8  	mock.Mock
     9  }
    10  
    11  // Fetch provides a mock function with given fields: _a0, _a1
    12  func (_m *MockType) Fetch(_a0 FetchOptions, _a1 Request) (FetchResult, error) {
    13  	ret := _m.Called(_a0, _a1)
    14  
    15  	var r0 FetchResult
    16  	if rf, ok := ret.Get(0).(func(FetchOptions, Request) FetchResult); ok {
    17  		r0 = rf(_a0, _a1)
    18  	} else {
    19  		r0 = ret.Get(0).(FetchResult)
    20  	}
    21  
    22  	var r1 error
    23  	if rf, ok := ret.Get(1).(func(FetchOptions, Request) error); ok {
    24  		r1 = rf(_a0, _a1)
    25  	} else {
    26  		r1 = ret.Error(1)
    27  	}
    28  
    29  	return r0, r1
    30  }
    31  
    32  // SupportsBlocking provides a mock function with given fields:
    33  func (_m *MockType) SupportsBlocking() bool {
    34  	ret := _m.Called()
    35  
    36  	var r0 bool
    37  	if rf, ok := ret.Get(0).(func() bool); ok {
    38  		r0 = rf()
    39  	} else {
    40  		r0 = ret.Get(0).(bool)
    41  	}
    42  
    43  	return r0
    44  }