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