github.com/yimialmonte/fabric@v2.1.1+incompatible/gossip/privdata/mocks/rw_set_scanner.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  import transientstore "github.com/hyperledger/fabric/core/transientstore"
     8  
     9  // RWSetScanner is an autogenerated mock type for the RWSetScanner type
    10  type RWSetScanner struct {
    11  	mock.Mock
    12  }
    13  
    14  // Close provides a mock function with given fields:
    15  func (_m *RWSetScanner) Close() {
    16  	_m.Called()
    17  }
    18  
    19  // Next provides a mock function with given fields:
    20  func (_m *RWSetScanner) Next() (*transientstore.EndorserPvtSimulationResults, error) {
    21  	ret := _m.Called()
    22  
    23  	var r0 *transientstore.EndorserPvtSimulationResults
    24  	if rf, ok := ret.Get(0).(func() *transientstore.EndorserPvtSimulationResults); ok {
    25  		r0 = rf()
    26  	} else {
    27  		if ret.Get(0) != nil {
    28  			r0 = ret.Get(0).(*transientstore.EndorserPvtSimulationResults)
    29  		}
    30  	}
    31  
    32  	var r1 error
    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  }