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