github.com/koko1123/flow-go-1@v0.29.6/module/mock/public_key.go (about)

     1  // Code generated by mockery v2.13.1. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import (
     6  	crypto "github.com/onflow/flow-go/crypto"
     7  	hash "github.com/onflow/flow-go/crypto/hash"
     8  
     9  	mock "github.com/stretchr/testify/mock"
    10  )
    11  
    12  // PublicKey is an autogenerated mock type for the PublicKey type
    13  type PublicKey struct {
    14  	mock.Mock
    15  }
    16  
    17  // Algorithm provides a mock function with given fields:
    18  func (_m *PublicKey) Algorithm() crypto.SigningAlgorithm {
    19  	ret := _m.Called()
    20  
    21  	var r0 crypto.SigningAlgorithm
    22  	if rf, ok := ret.Get(0).(func() crypto.SigningAlgorithm); ok {
    23  		r0 = rf()
    24  	} else {
    25  		r0 = ret.Get(0).(crypto.SigningAlgorithm)
    26  	}
    27  
    28  	return r0
    29  }
    30  
    31  // Encode provides a mock function with given fields:
    32  func (_m *PublicKey) Encode() []byte {
    33  	ret := _m.Called()
    34  
    35  	var r0 []byte
    36  	if rf, ok := ret.Get(0).(func() []byte); ok {
    37  		r0 = rf()
    38  	} else {
    39  		if ret.Get(0) != nil {
    40  			r0 = ret.Get(0).([]byte)
    41  		}
    42  	}
    43  
    44  	return r0
    45  }
    46  
    47  // EncodeCompressed provides a mock function with given fields:
    48  func (_m *PublicKey) EncodeCompressed() []byte {
    49  	ret := _m.Called()
    50  
    51  	var r0 []byte
    52  	if rf, ok := ret.Get(0).(func() []byte); ok {
    53  		r0 = rf()
    54  	} else {
    55  		if ret.Get(0) != nil {
    56  			r0 = ret.Get(0).([]byte)
    57  		}
    58  	}
    59  
    60  	return r0
    61  }
    62  
    63  // Equals provides a mock function with given fields: _a0
    64  func (_m *PublicKey) Equals(_a0 crypto.PublicKey) bool {
    65  	ret := _m.Called(_a0)
    66  
    67  	var r0 bool
    68  	if rf, ok := ret.Get(0).(func(crypto.PublicKey) bool); ok {
    69  		r0 = rf(_a0)
    70  	} else {
    71  		r0 = ret.Get(0).(bool)
    72  	}
    73  
    74  	return r0
    75  }
    76  
    77  // Size provides a mock function with given fields:
    78  func (_m *PublicKey) Size() int {
    79  	ret := _m.Called()
    80  
    81  	var r0 int
    82  	if rf, ok := ret.Get(0).(func() int); ok {
    83  		r0 = rf()
    84  	} else {
    85  		r0 = ret.Get(0).(int)
    86  	}
    87  
    88  	return r0
    89  }
    90  
    91  // String provides a mock function with given fields:
    92  func (_m *PublicKey) String() string {
    93  	ret := _m.Called()
    94  
    95  	var r0 string
    96  	if rf, ok := ret.Get(0).(func() string); ok {
    97  		r0 = rf()
    98  	} else {
    99  		r0 = ret.Get(0).(string)
   100  	}
   101  
   102  	return r0
   103  }
   104  
   105  // Verify provides a mock function with given fields: _a0, _a1, _a2
   106  func (_m *PublicKey) Verify(_a0 crypto.Signature, _a1 []byte, _a2 hash.Hasher) (bool, error) {
   107  	ret := _m.Called(_a0, _a1, _a2)
   108  
   109  	var r0 bool
   110  	if rf, ok := ret.Get(0).(func(crypto.Signature, []byte, hash.Hasher) bool); ok {
   111  		r0 = rf(_a0, _a1, _a2)
   112  	} else {
   113  		r0 = ret.Get(0).(bool)
   114  	}
   115  
   116  	var r1 error
   117  	if rf, ok := ret.Get(1).(func(crypto.Signature, []byte, hash.Hasher) error); ok {
   118  		r1 = rf(_a0, _a1, _a2)
   119  	} else {
   120  		r1 = ret.Error(1)
   121  	}
   122  
   123  	return r0, r1
   124  }
   125  
   126  type mockConstructorTestingTNewPublicKey interface {
   127  	mock.TestingT
   128  	Cleanup(func())
   129  }
   130  
   131  // NewPublicKey creates a new instance of PublicKey. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
   132  func NewPublicKey(t mockConstructorTestingTNewPublicKey) *PublicKey {
   133  	mock := &PublicKey{}
   134  	mock.Mock.Test(t)
   135  
   136  	t.Cleanup(func() { mock.AssertExpectations(t) })
   137  
   138  	return mock
   139  }