code: func (ds *MockSelectionService) GetEndorsersForChaincode(chaincodes []*fab.ChaincodeCall, opts ...options.Opt) ([]fab.Peer, error) {
  
  	if ds.Error != nil {
  		return nil, ds.Error
  	}
  
  	if ds.Peers == nil {
  		mockPeer := NewMockPeer("Peer1", "http://peer1.com")
  		peers := make([]fab.Peer, 0)
  		peers = append(peers, mockPeer)
  		ds.Peers = peers
  	}
  
  	return ds.Peers, nil
  
  }
docs: // GetEndorsersForChaincode mockcore retrieving endorsing peers