github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/storage/mock/safe_beacon_keys.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  	mock "github.com/stretchr/testify/mock"
     8  )
     9  
    10  // SafeBeaconKeys is an autogenerated mock type for the SafeBeaconKeys type
    11  type SafeBeaconKeys struct {
    12  	mock.Mock
    13  }
    14  
    15  // RetrieveMyBeaconPrivateKey provides a mock function with given fields: epochCounter
    16  func (_m *SafeBeaconKeys) RetrieveMyBeaconPrivateKey(epochCounter uint64) (crypto.PrivateKey, bool, error) {
    17  	ret := _m.Called(epochCounter)
    18  
    19  	var r0 crypto.PrivateKey
    20  	var r1 bool
    21  	var r2 error
    22  	if rf, ok := ret.Get(0).(func(uint64) (crypto.PrivateKey, bool, error)); ok {
    23  		return rf(epochCounter)
    24  	}
    25  	if rf, ok := ret.Get(0).(func(uint64) crypto.PrivateKey); ok {
    26  		r0 = rf(epochCounter)
    27  	} else {
    28  		if ret.Get(0) != nil {
    29  			r0 = ret.Get(0).(crypto.PrivateKey)
    30  		}
    31  	}
    32  
    33  	if rf, ok := ret.Get(1).(func(uint64) bool); ok {
    34  		r1 = rf(epochCounter)
    35  	} else {
    36  		r1 = ret.Get(1).(bool)
    37  	}
    38  
    39  	if rf, ok := ret.Get(2).(func(uint64) error); ok {
    40  		r2 = rf(epochCounter)
    41  	} else {
    42  		r2 = ret.Error(2)
    43  	}
    44  
    45  	return r0, r1, r2
    46  }
    47  
    48  type mockConstructorTestingTNewSafeBeaconKeys interface {
    49  	mock.TestingT
    50  	Cleanup(func())
    51  }
    52  
    53  // NewSafeBeaconKeys creates a new instance of SafeBeaconKeys. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    54  func NewSafeBeaconKeys(t mockConstructorTestingTNewSafeBeaconKeys) *SafeBeaconKeys {
    55  	mock := &SafeBeaconKeys{}
    56  	mock.Mock.Test(t)
    57  
    58  	t.Cleanup(func() { mock.AssertExpectations(t) })
    59  
    60  	return mock
    61  }