-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfake_service_summary_repository.go
46 lines (39 loc) · 1.62 KB
/
fake_service_summary_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
// This file was generated by counterfeiter
package apifakes
import (
"sync"
"github.com/cloudfoundry/cli/cf/api"
"github.com/cloudfoundry/cli/cf/models"
)
type FakeServiceSummaryRepository struct {
GetSummariesInCurrentSpaceStub func() (instances []models.ServiceInstance, apiErr error)
getSummariesInCurrentSpaceMutex sync.RWMutex
getSummariesInCurrentSpaceArgsForCall []struct{}
getSummariesInCurrentSpaceReturns struct {
result1 []models.ServiceInstance
result2 error
}
}
func (fake *FakeServiceSummaryRepository) GetSummariesInCurrentSpace() (instances []models.ServiceInstance, apiErr error) {
fake.getSummariesInCurrentSpaceMutex.Lock()
fake.getSummariesInCurrentSpaceArgsForCall = append(fake.getSummariesInCurrentSpaceArgsForCall, struct{}{})
fake.getSummariesInCurrentSpaceMutex.Unlock()
if fake.GetSummariesInCurrentSpaceStub != nil {
return fake.GetSummariesInCurrentSpaceStub()
} else {
return fake.getSummariesInCurrentSpaceReturns.result1, fake.getSummariesInCurrentSpaceReturns.result2
}
}
func (fake *FakeServiceSummaryRepository) GetSummariesInCurrentSpaceCallCount() int {
fake.getSummariesInCurrentSpaceMutex.RLock()
defer fake.getSummariesInCurrentSpaceMutex.RUnlock()
return len(fake.getSummariesInCurrentSpaceArgsForCall)
}
func (fake *FakeServiceSummaryRepository) GetSummariesInCurrentSpaceReturns(result1 []models.ServiceInstance, result2 error) {
fake.GetSummariesInCurrentSpaceStub = nil
fake.getSummariesInCurrentSpaceReturns = struct {
result1 []models.ServiceInstance
result2 error
}{result1, result2}
}
var _ api.ServiceSummaryRepository = new(FakeServiceSummaryRepository)