github.com/Hnampk/fabric@v2.1.1+incompatible/gossip/api/mocks/security_advisor.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	api "github.com/hyperledger/fabric/gossip/api"
     7  	mock "github.com/stretchr/testify/mock"
     8  )
     9  
    10  // SecurityAdvisor is an autogenerated mock type for the SecurityAdvisor type
    11  type SecurityAdvisor struct {
    12  	mock.Mock
    13  }
    14  
    15  // OrgByPeerIdentity provides a mock function with given fields: _a0
    16  func (_m *SecurityAdvisor) OrgByPeerIdentity(_a0 api.PeerIdentityType) api.OrgIdentityType {
    17  	ret := _m.Called(_a0)
    18  
    19  	var r0 api.OrgIdentityType
    20  	if rf, ok := ret.Get(0).(func(api.PeerIdentityType) api.OrgIdentityType); ok {
    21  		r0 = rf(_a0)
    22  	} else {
    23  		if ret.Get(0) != nil {
    24  			r0 = ret.Get(0).(api.OrgIdentityType)
    25  		}
    26  	}
    27  
    28  	return r0
    29  }