forked from cloudfoundry-attic/garden-linux
/
fake_container_initializer.go
73 lines (63 loc) · 1.79 KB
/
fake_container_initializer.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// This file was generated by counterfeiter
package fakes
import (
"sync"
"github.com/cloudfoundry-incubator/garden-linux/linux_backend"
)
type FakeContainerInitializer struct {
MountProcStub func() error
mountProcMutex sync.RWMutex
mountProcArgsForCall []struct{}
mountProcReturns struct {
result1 error
}
MountTmpStub func() error
mountTmpMutex sync.RWMutex
mountTmpArgsForCall []struct{}
mountTmpReturns struct {
result1 error
}
}
func (fake *FakeContainerInitializer) MountProc() error {
fake.mountProcMutex.Lock()
fake.mountProcArgsForCall = append(fake.mountProcArgsForCall, struct{}{})
fake.mountProcMutex.Unlock()
if fake.MountProcStub != nil {
return fake.MountProcStub()
} else {
return fake.mountProcReturns.result1
}
}
func (fake *FakeContainerInitializer) MountProcCallCount() int {
fake.mountProcMutex.RLock()
defer fake.mountProcMutex.RUnlock()
return len(fake.mountProcArgsForCall)
}
func (fake *FakeContainerInitializer) MountProcReturns(result1 error) {
fake.MountProcStub = nil
fake.mountProcReturns = struct {
result1 error
}{result1}
}
func (fake *FakeContainerInitializer) MountTmp() error {
fake.mountTmpMutex.Lock()
fake.mountTmpArgsForCall = append(fake.mountTmpArgsForCall, struct{}{})
fake.mountTmpMutex.Unlock()
if fake.MountTmpStub != nil {
return fake.MountTmpStub()
} else {
return fake.mountTmpReturns.result1
}
}
func (fake *FakeContainerInitializer) MountTmpCallCount() int {
fake.mountTmpMutex.RLock()
defer fake.mountTmpMutex.RUnlock()
return len(fake.mountTmpArgsForCall)
}
func (fake *FakeContainerInitializer) MountTmpReturns(result1 error) {
fake.MountTmpStub = nil
fake.mountTmpReturns = struct {
result1 error
}{result1}
}
var _ linux_backend.ContainerInitializer = new(FakeContainerInitializer)