github.com/blockchain-gm/fabric-ca@v0.0.0-20200423072702-b2c40c7ac69c/lib/server/idemix/mocks/RevocationAuthority.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  	FP256BN "github.com/hyperledger/fabric-amcl/amcl/FP256BN"
    12  	// import ecdsa "crypto/ecdsa"
    13  	sm2 "github.com/tjfoc/gmsm/sm2"
    14  
    15  	idemix "github.com/hyperledger/fabric/idemix"
    16  
    17  	mock "github.com/stretchr/testify/mock"
    18  )
    19  
    20  // RevocationAuthority is an autogenerated mock type for the RevocationAuthority type
    21  type RevocationAuthority struct {
    22  	mock.Mock
    23  }
    24  
    25  // CreateCRI provides a mock function with given fields:
    26  func (_m *RevocationAuthority) CreateCRI() (*idemix.CredentialRevocationInformation, error) {
    27  	ret := _m.Called()
    28  
    29  	var r0 *idemix.CredentialRevocationInformation
    30  	if rf, ok := ret.Get(0).(func() *idemix.CredentialRevocationInformation); ok {
    31  		r0 = rf()
    32  	} else {
    33  		if ret.Get(0) != nil {
    34  			r0 = ret.Get(0).(*idemix.CredentialRevocationInformation)
    35  		}
    36  	}
    37  
    38  	var r1 error
    39  	if rf, ok := ret.Get(1).(func() error); ok {
    40  		r1 = rf()
    41  	} else {
    42  		r1 = ret.Error(1)
    43  	}
    44  
    45  	return r0, r1
    46  }
    47  
    48  // Epoch provides a mock function with given fields:
    49  func (_m *RevocationAuthority) Epoch() (int, error) {
    50  	ret := _m.Called()
    51  
    52  	var r0 int
    53  	if rf, ok := ret.Get(0).(func() int); ok {
    54  		r0 = rf()
    55  	} else {
    56  		r0 = ret.Get(0).(int)
    57  	}
    58  
    59  	var r1 error
    60  	if rf, ok := ret.Get(1).(func() error); ok {
    61  		r1 = rf()
    62  	} else {
    63  		r1 = ret.Error(1)
    64  	}
    65  
    66  	return r0, r1
    67  }
    68  
    69  // GetNewRevocationHandle provides a mock function with given fields:
    70  func (_m *RevocationAuthority) GetNewRevocationHandle() (*FP256BN.BIG, error) {
    71  	ret := _m.Called()
    72  
    73  	var r0 *FP256BN.BIG
    74  	if rf, ok := ret.Get(0).(func() *FP256BN.BIG); ok {
    75  		r0 = rf()
    76  	} else {
    77  		if ret.Get(0) != nil {
    78  			r0 = ret.Get(0).(*FP256BN.BIG)
    79  		}
    80  	}
    81  
    82  	var r1 error
    83  	if rf, ok := ret.Get(1).(func() error); ok {
    84  		r1 = rf()
    85  	} else {
    86  		r1 = ret.Error(1)
    87  	}
    88  
    89  	return r0, r1
    90  }
    91  
    92  // PublicKey provides a mock function with given fields:
    93  func (_m *RevocationAuthority) PublicKey() *sm2.PublicKey {
    94  	ret := _m.Called()
    95  
    96  	var r0 *sm2.PublicKey
    97  	if rf, ok := ret.Get(0).(func() *sm2.PublicKey); ok {
    98  		r0 = rf()
    99  	} else {
   100  		if ret.Get(0) != nil {
   101  			r0 = ret.Get(0).(*sm2.PublicKey)
   102  		}
   103  	}
   104  
   105  	return r0
   106  }