This repository has been archived by the owner on Jan 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
fake_cc_client.go
60 lines (52 loc) · 1.87 KB
/
fake_cc_client.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
// This file was generated by counterfeiter
package fakes
import (
"sync"
"code.cloudfoundry.org/lager"
"code.cloudfoundry.org/stager/cc_client"
)
type FakeCcClient struct {
StagingCompleteStub func(stagingGuid string, completionCallback string, payload []byte, logger lager.Logger) error
stagingCompleteMutex sync.RWMutex
stagingCompleteArgsForCall []struct {
stagingGuid string
completionCallback string
payload []byte
logger lager.Logger
}
stagingCompleteReturns struct {
result1 error
}
}
func (fake *FakeCcClient) StagingComplete(stagingGuid string, completionCallback string, payload []byte, logger lager.Logger) error {
fake.stagingCompleteMutex.Lock()
fake.stagingCompleteArgsForCall = append(fake.stagingCompleteArgsForCall, struct {
stagingGuid string
completionCallback string
payload []byte
logger lager.Logger
}{stagingGuid, completionCallback, payload, logger})
fake.stagingCompleteMutex.Unlock()
if fake.StagingCompleteStub != nil {
return fake.StagingCompleteStub(stagingGuid, completionCallback, payload, logger)
} else {
return fake.stagingCompleteReturns.result1
}
}
func (fake *FakeCcClient) StagingCompleteCallCount() int {
fake.stagingCompleteMutex.RLock()
defer fake.stagingCompleteMutex.RUnlock()
return len(fake.stagingCompleteArgsForCall)
}
func (fake *FakeCcClient) StagingCompleteArgsForCall(i int) (string, []byte, lager.Logger) {
fake.stagingCompleteMutex.RLock()
defer fake.stagingCompleteMutex.RUnlock()
return fake.stagingCompleteArgsForCall[i].stagingGuid, fake.stagingCompleteArgsForCall[i].payload, fake.stagingCompleteArgsForCall[i].logger
}
func (fake *FakeCcClient) StagingCompleteReturns(result1 error) {
fake.StagingCompleteStub = nil
fake.stagingCompleteReturns = struct {
result1 error
}{result1}
}
var _ cc_client.CcClient = new(FakeCcClient)