github.com/hxx258456/fabric-ca-gm@v0.0.3-0.20221111064038-a268ad7e3a37/lib/client/credential/x509/mocks/Identity.go (about)

     1  /*
     2  Copyright IBM Corp. All Rights Reserved.
     3  
     4  SPDX-License-Identifier: Apache-2.0
     5  */
     6  // Code generated by mockery v1.0.0
     7  
     8  package mocks
     9  
    10  import (
    11  	api "github.com/hxx258456/fabric-ca-gm/internal/pkg/api"
    12  	mock "github.com/stretchr/testify/mock"
    13  )
    14  
    15  // Identity is an autogenerated mock type for the Identity type
    16  type Identity struct {
    17  	mock.Mock
    18  }
    19  
    20  // Revoke provides a mock function with given fields: req
    21  func (_m *Identity) Revoke(req *api.RevocationRequest) (*api.RevocationResponse, error) {
    22  	ret := _m.Called(req)
    23  
    24  	var r0 *api.RevocationResponse
    25  	if rf, ok := ret.Get(0).(func(*api.RevocationRequest) *api.RevocationResponse); ok {
    26  		r0 = rf(req)
    27  	} else {
    28  		if ret.Get(0) != nil {
    29  			r0 = ret.Get(0).(*api.RevocationResponse)
    30  		}
    31  	}
    32  
    33  	var r1 error
    34  	if rf, ok := ret.Get(1).(func(*api.RevocationRequest) error); ok {
    35  		r1 = rf(req)
    36  	} else {
    37  		r1 = ret.Error(1)
    38  	}
    39  
    40  	return r0, r1
    41  }