forked from cloudfoundry/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fake_handlers.go
55 lines (47 loc) · 1.44 KB
/
fake_handlers.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 fakes
import (
"sync"
"github.com/cloudfoundry/cli/testhelpers/rpc_server"
)
type FakeHandlers struct {
IsMinCliVersionStub func(args string, retVal *bool) error
isMinCliVersionMutex sync.RWMutex
isMinCliVersionArgsForCall []struct {
args string
retVal *bool
}
isMinCliVersionReturns struct {
result1 error
}
}
func (fake *FakeHandlers) IsMinCliVersion(args string, retVal *bool) error {
fake.isMinCliVersionMutex.Lock()
fake.isMinCliVersionArgsForCall = append(fake.isMinCliVersionArgsForCall, struct {
args string
retVal *bool
}{args, retVal})
fake.isMinCliVersionMutex.Unlock()
if fake.IsMinCliVersionStub != nil {
return fake.IsMinCliVersionStub(args, retVal)
} else {
return fake.isMinCliVersionReturns.result1
}
}
func (fake *FakeHandlers) IsMinCliVersionCallCount() int {
fake.isMinCliVersionMutex.RLock()
defer fake.isMinCliVersionMutex.RUnlock()
return len(fake.isMinCliVersionArgsForCall)
}
func (fake *FakeHandlers) IsMinCliVersionArgsForCall(i int) (string, *bool) {
fake.isMinCliVersionMutex.RLock()
defer fake.isMinCliVersionMutex.RUnlock()
return fake.isMinCliVersionArgsForCall[i].args, fake.isMinCliVersionArgsForCall[i].retVal
}
func (fake *FakeHandlers) IsMinCliVersionReturns(result1 error) {
fake.IsMinCliVersionStub = nil
fake.isMinCliVersionReturns = struct {
result1 error
}{result1}
}
var _ test_rpc_server.Handlers = new(FakeHandlers)