github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/mock/public_key.go (about)

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