forked from cloudfoundry/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfake_app_events_repo.go
53 lines (47 loc) · 1.5 KB
/
fake_app_events_repo.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
// This file was generated by counterfeiter
package fakes
import (
"github.com/cloudfoundry/cli/cf/models"
"sync"
)
type FakeAppEventsRepository struct {
RecentEventsStub func(appGuid string, limit int64) ([]models.EventFields, error)
recentEventsMutex sync.RWMutex
recentEventsArgsForCall []struct {
arg1 string
arg2 int64
}
recentEventsReturns struct {
result1 []models.EventFields
result2 error
}
}
func (fake *FakeAppEventsRepository) RecentEvents(arg1 string, arg2 int64) ([]models.EventFields, error) {
fake.recentEventsMutex.Lock()
defer fake.recentEventsMutex.Unlock()
fake.recentEventsArgsForCall = append(fake.recentEventsArgsForCall, struct {
arg1 string
arg2 int64
}{arg1, arg2})
if fake.RecentEventsStub != nil {
return fake.RecentEventsStub(arg1, arg2)
} else {
return fake.recentEventsReturns.result1, fake.recentEventsReturns.result2
}
}
func (fake *FakeAppEventsRepository) RecentEventsCallCount() int {
fake.recentEventsMutex.RLock()
defer fake.recentEventsMutex.RUnlock()
return len(fake.recentEventsArgsForCall)
}
func (fake *FakeAppEventsRepository) RecentEventsArgsForCall(i int) (string, int64) {
fake.recentEventsMutex.RLock()
defer fake.recentEventsMutex.RUnlock()
return fake.recentEventsArgsForCall[i].arg1, fake.recentEventsArgsForCall[i].arg2
}
func (fake *FakeAppEventsRepository) RecentEventsReturns(result1 []models.EventFields, result2 error) {
fake.recentEventsReturns = struct {
result1 []models.EventFields
result2 error
}{result1, result2}
}