-
Notifications
You must be signed in to change notification settings - Fork 161
/
fake_stemcell_archive.go
79 lines (69 loc) · 1.92 KB
/
fake_stemcell_archive.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
// This file was generated by counterfeiter
package fakes
import (
"sync"
"github.com/cloudfoundry/bosh-cli/director"
)
type FakeStemcellArchive struct {
InfoStub func() (string, string, error)
infoMutex sync.RWMutex
infoArgsForCall []struct{}
infoReturns struct {
result1 string
result2 string
result3 error
}
FileStub func() (director.UploadFile, error)
fileMutex sync.RWMutex
fileArgsForCall []struct{}
fileReturns struct {
result1 director.UploadFile
result2 error
}
}
func (fake *FakeStemcellArchive) Info() (string, string, error) {
fake.infoMutex.Lock()
fake.infoArgsForCall = append(fake.infoArgsForCall, struct{}{})
fake.infoMutex.Unlock()
if fake.InfoStub != nil {
return fake.InfoStub()
} else {
return fake.infoReturns.result1, fake.infoReturns.result2, fake.infoReturns.result3
}
}
func (fake *FakeStemcellArchive) InfoCallCount() int {
fake.infoMutex.RLock()
defer fake.infoMutex.RUnlock()
return len(fake.infoArgsForCall)
}
func (fake *FakeStemcellArchive) InfoReturns(result1 string, result2 string, result3 error) {
fake.InfoStub = nil
fake.infoReturns = struct {
result1 string
result2 string
result3 error
}{result1, result2, result3}
}
func (fake *FakeStemcellArchive) File() (director.UploadFile, error) {
fake.fileMutex.Lock()
fake.fileArgsForCall = append(fake.fileArgsForCall, struct{}{})
fake.fileMutex.Unlock()
if fake.FileStub != nil {
return fake.FileStub()
} else {
return fake.fileReturns.result1, fake.fileReturns.result2
}
}
func (fake *FakeStemcellArchive) FileCallCount() int {
fake.fileMutex.RLock()
defer fake.fileMutex.RUnlock()
return len(fake.fileArgsForCall)
}
func (fake *FakeStemcellArchive) FileReturns(result1 director.UploadFile, result2 error) {
fake.FileStub = nil
fake.fileReturns = struct {
result1 director.UploadFile
result2 error
}{result1, result2}
}
var _ director.StemcellArchive = new(FakeStemcellArchive)