This repository has been archived by the owner on Sep 6, 2021. It is now read-only.
forked from cloudfoundry/bosh-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fake_config.go
119 lines (105 loc) · 3.11 KB
/
fake_config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
// This file was generated by counterfeiter
package fakes
import (
"sync"
"github.com/cloudfoundry/bosh-cli/releasedir"
)
type FakeConfig struct {
FinalNameStub func() (string, error)
finalNameMutex sync.RWMutex
finalNameArgsForCall []struct{}
finalNameReturns struct {
result1 string
result2 error
}
SaveFinalNameStub func(string) error
saveFinalNameMutex sync.RWMutex
saveFinalNameArgsForCall []struct {
arg1 string
}
saveFinalNameReturns struct {
result1 error
}
BlobstoreStub func() (string, map[string]interface{}, error)
blobstoreMutex sync.RWMutex
blobstoreArgsForCall []struct{}
blobstoreReturns struct {
result1 string
result2 map[string]interface{}
result3 error
}
}
func (fake *FakeConfig) FinalName() (string, error) {
fake.finalNameMutex.Lock()
fake.finalNameArgsForCall = append(fake.finalNameArgsForCall, struct{}{})
fake.finalNameMutex.Unlock()
if fake.FinalNameStub != nil {
return fake.FinalNameStub()
} else {
return fake.finalNameReturns.result1, fake.finalNameReturns.result2
}
}
func (fake *FakeConfig) FinalNameCallCount() int {
fake.finalNameMutex.RLock()
defer fake.finalNameMutex.RUnlock()
return len(fake.finalNameArgsForCall)
}
func (fake *FakeConfig) FinalNameReturns(result1 string, result2 error) {
fake.FinalNameStub = nil
fake.finalNameReturns = struct {
result1 string
result2 error
}{result1, result2}
}
func (fake *FakeConfig) SaveFinalName(arg1 string) error {
fake.saveFinalNameMutex.Lock()
fake.saveFinalNameArgsForCall = append(fake.saveFinalNameArgsForCall, struct {
arg1 string
}{arg1})
fake.saveFinalNameMutex.Unlock()
if fake.SaveFinalNameStub != nil {
return fake.SaveFinalNameStub(arg1)
} else {
return fake.saveFinalNameReturns.result1
}
}
func (fake *FakeConfig) SaveFinalNameCallCount() int {
fake.saveFinalNameMutex.RLock()
defer fake.saveFinalNameMutex.RUnlock()
return len(fake.saveFinalNameArgsForCall)
}
func (fake *FakeConfig) SaveFinalNameArgsForCall(i int) string {
fake.saveFinalNameMutex.RLock()
defer fake.saveFinalNameMutex.RUnlock()
return fake.saveFinalNameArgsForCall[i].arg1
}
func (fake *FakeConfig) SaveFinalNameReturns(result1 error) {
fake.SaveFinalNameStub = nil
fake.saveFinalNameReturns = struct {
result1 error
}{result1}
}
func (fake *FakeConfig) Blobstore() (string, map[string]interface{}, error) {
fake.blobstoreMutex.Lock()
fake.blobstoreArgsForCall = append(fake.blobstoreArgsForCall, struct{}{})
fake.blobstoreMutex.Unlock()
if fake.BlobstoreStub != nil {
return fake.BlobstoreStub()
} else {
return fake.blobstoreReturns.result1, fake.blobstoreReturns.result2, fake.blobstoreReturns.result3
}
}
func (fake *FakeConfig) BlobstoreCallCount() int {
fake.blobstoreMutex.RLock()
defer fake.blobstoreMutex.RUnlock()
return len(fake.blobstoreArgsForCall)
}
func (fake *FakeConfig) BlobstoreReturns(result1 string, result2 map[string]interface{}, result3 error) {
fake.BlobstoreStub = nil
fake.blobstoreReturns = struct {
result1 string
result2 map[string]interface{}
result3 error
}{result1, result2, result3}
}
var _ releasedir.Config = new(FakeConfig)