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