github.com/kaituanwang/hyperledger@v2.0.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 (
     6  	mock "github.com/stretchr/testify/mock"
     7  
     8  	transientstore "github.com/hyperledger/fabric/core/transientstore"
     9  )
    10  
    11  // RWSetScanner is an autogenerated mock type for the RWSetScanner type
    12  type RWSetScanner struct {
    13  	mock.Mock
    14  }
    15  
    16  // Close provides a mock function with given fields:
    17  func (_m *RWSetScanner) Close() {
    18  	_m.Called()
    19  }
    20  
    21  // Next provides a mock function with given fields:
    22  func (_m *RWSetScanner) Next() (*transientstore.EndorserPvtSimulationResults, error) {
    23  	ret := _m.Called()
    24  
    25  	var r0 *transientstore.EndorserPvtSimulationResults
    26  	if rf, ok := ret.Get(0).(func() *transientstore.EndorserPvtSimulationResults); ok {
    27  		r0 = rf()
    28  	} else {
    29  		if ret.Get(0) != nil {
    30  			r0 = ret.Get(0).(*transientstore.EndorserPvtSimulationResults)
    31  		}
    32  	}
    33  
    34  	var r1 error
    35  	if rf, ok := ret.Get(1).(func() error); ok {
    36  		r1 = rf()
    37  	} else {
    38  		r1 = ret.Error(1)
    39  	}
    40  
    41  	return r0, r1
    42  }