| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- // Code generated by counterfeiter. DO NOT EDIT.
- package fakes
- import (
- "sync"
- "github.com/external-secrets/external-secrets/apis/externalsecrets/v1"
- )
- type PushRemoteRef struct {
- GetRemoteKeyStub func() string
- getRemoteKeyMutex sync.RWMutex
- getRemoteKeyArgsForCall []struct {
- }
- getRemoteKeyReturns struct {
- result1 string
- }
- getRemoteKeyReturnsOnCall map[int]struct {
- result1 string
- }
- invocations map[string][][]any
- invocationsMutex sync.RWMutex
- }
- func (fake *PushRemoteRef) GetRemoteKey() string {
- fake.getRemoteKeyMutex.Lock()
- ret, specificReturn := fake.getRemoteKeyReturnsOnCall[len(fake.getRemoteKeyArgsForCall)]
- fake.getRemoteKeyArgsForCall = append(fake.getRemoteKeyArgsForCall, struct {
- }{})
- stub := fake.GetRemoteKeyStub
- fakeReturns := fake.getRemoteKeyReturns
- fake.recordInvocation("GetRemoteKey", []any{})
- fake.getRemoteKeyMutex.Unlock()
- if stub != nil {
- return stub()
- }
- if specificReturn {
- return ret.result1
- }
- return fakeReturns.result1
- }
- func (fake *PushRemoteRef) GetProperty() string {
- return ""
- }
- func (fake *PushRemoteRef) GetRemoteKeyCallCount() int {
- fake.getRemoteKeyMutex.RLock()
- defer fake.getRemoteKeyMutex.RUnlock()
- return len(fake.getRemoteKeyArgsForCall)
- }
- func (fake *PushRemoteRef) GetRemoteKeyCalls(stub func() string) {
- fake.getRemoteKeyMutex.Lock()
- defer fake.getRemoteKeyMutex.Unlock()
- fake.GetRemoteKeyStub = stub
- }
- func (fake *PushRemoteRef) GetRemoteKeyReturns(result1 string) {
- fake.getRemoteKeyMutex.Lock()
- defer fake.getRemoteKeyMutex.Unlock()
- fake.GetRemoteKeyStub = nil
- fake.getRemoteKeyReturns = struct {
- result1 string
- }{result1}
- }
- func (fake *PushRemoteRef) GetRemoteKeyReturnsOnCall(i int, result1 string) {
- fake.getRemoteKeyMutex.Lock()
- defer fake.getRemoteKeyMutex.Unlock()
- fake.GetRemoteKeyStub = nil
- if fake.getRemoteKeyReturnsOnCall == nil {
- fake.getRemoteKeyReturnsOnCall = make(map[int]struct {
- result1 string
- })
- }
- fake.getRemoteKeyReturnsOnCall[i] = struct {
- result1 string
- }{result1}
- }
- func (fake *PushRemoteRef) Invocations() map[string][][]any {
- fake.invocationsMutex.RLock()
- defer fake.invocationsMutex.RUnlock()
- fake.getRemoteKeyMutex.RLock()
- defer fake.getRemoteKeyMutex.RUnlock()
- copiedInvocations := map[string][][]any{}
- for key, value := range fake.invocations {
- copiedInvocations[key] = value
- }
- return copiedInvocations
- }
- func (fake *PushRemoteRef) recordInvocation(key string, args []any) {
- fake.invocationsMutex.Lock()
- defer fake.invocationsMutex.Unlock()
- if fake.invocations == nil {
- fake.invocations = map[string][][]any{}
- }
- if fake.invocations[key] == nil {
- fake.invocations[key] = [][]any{}
- }
- fake.invocations[key] = append(fake.invocations[key], args)
- }
- var _ v1.PushSecretRemoteRef = new(PushRemoteRef)
|