-
Notifications
You must be signed in to change notification settings - Fork 0
/
fake_copy_application_source_repository.go
55 lines (47 loc) · 1.74 KB
/
fake_copy_application_source_repository.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
// This file was generated by counterfeiter
package copyapplicationsourcefakes
import (
"sync"
"github.com/cloudfoundry/cli/cf/api/copyapplicationsource"
)
type FakeCopyApplicationSourceRepository struct {
CopyApplicationStub func(sourceAppGUID, targetAppGUID string) error
copyApplicationMutex sync.RWMutex
copyApplicationArgsForCall []struct {
sourceAppGUID string
targetAppGUID string
}
copyApplicationReturns struct {
result1 error
}
}
func (fake *FakeCopyApplicationSourceRepository) CopyApplication(sourceAppGUID string, targetAppGUID string) error {
fake.copyApplicationMutex.Lock()
fake.copyApplicationArgsForCall = append(fake.copyApplicationArgsForCall, struct {
sourceAppGUID string
targetAppGUID string
}{sourceAppGUID, targetAppGUID})
fake.copyApplicationMutex.Unlock()
if fake.CopyApplicationStub != nil {
return fake.CopyApplicationStub(sourceAppGUID, targetAppGUID)
} else {
return fake.copyApplicationReturns.result1
}
}
func (fake *FakeCopyApplicationSourceRepository) CopyApplicationCallCount() int {
fake.copyApplicationMutex.RLock()
defer fake.copyApplicationMutex.RUnlock()
return len(fake.copyApplicationArgsForCall)
}
func (fake *FakeCopyApplicationSourceRepository) CopyApplicationArgsForCall(i int) (string, string) {
fake.copyApplicationMutex.RLock()
defer fake.copyApplicationMutex.RUnlock()
return fake.copyApplicationArgsForCall[i].sourceAppGUID, fake.copyApplicationArgsForCall[i].targetAppGUID
}
func (fake *FakeCopyApplicationSourceRepository) CopyApplicationReturns(result1 error) {
fake.CopyApplicationStub = nil
fake.copyApplicationReturns = struct {
result1 error
}{result1}
}
var _ copyapplicationsource.CopyApplicationSourceRepository = new(FakeCopyApplicationSourceRepository)