forked from cloudfoundry/cli-plugin-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fake_server_handles.go
44 lines (37 loc) · 1.17 KB
/
fake_server_handles.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
// This file was generated by counterfeiter
package fakes
import (
"net/http"
"sync"
"github.com/cloudfoundry-incubator/cli-plugin-repo/server"
)
type FakeServerHandles struct {
ListPluginsStub func(w http.ResponseWriter, r *http.Request)
listPluginsMutex sync.RWMutex
listPluginsArgsForCall []struct {
w http.ResponseWriter
r *http.Request
}
}
func (fake *FakeServerHandles) ListPlugins(w http.ResponseWriter, r *http.Request) {
fake.listPluginsMutex.Lock()
defer fake.listPluginsMutex.Unlock()
fake.listPluginsArgsForCall = append(fake.listPluginsArgsForCall, struct {
w http.ResponseWriter
r *http.Request
}{w, r})
if fake.ListPluginsStub != nil {
fake.ListPluginsStub(w, r)
}
}
func (fake *FakeServerHandles) ListPluginsCallCount() int {
fake.listPluginsMutex.RLock()
defer fake.listPluginsMutex.RUnlock()
return len(fake.listPluginsArgsForCall)
}
func (fake *FakeServerHandles) ListPluginsArgsForCall(i int) (http.ResponseWriter, *http.Request) {
fake.listPluginsMutex.RLock()
defer fake.listPluginsMutex.RUnlock()
return fake.listPluginsArgsForCall[i].w, fake.listPluginsArgsForCall[i].r
}
var _ server.ServerHandles = new(FakeServerHandles)