github.com/schwarzm/garden-linux@v0.0.0-20150507151835-33bca2147c47/linux_backend/fakes/fake_container_initializer.go (about) 1 // This file was generated by counterfeiter 2 package fakes 3 4 import ( 5 "sync" 6 7 "github.com/cloudfoundry-incubator/garden-linux/linux_backend" 8 ) 9 10 type FakeContainerInitializer struct { 11 MountProcStub func() error 12 mountProcMutex sync.RWMutex 13 mountProcArgsForCall []struct{} 14 mountProcReturns struct { 15 result1 error 16 } 17 MountTmpStub func() error 18 mountTmpMutex sync.RWMutex 19 mountTmpArgsForCall []struct{} 20 mountTmpReturns struct { 21 result1 error 22 } 23 } 24 25 func (fake *FakeContainerInitializer) MountProc() error { 26 fake.mountProcMutex.Lock() 27 fake.mountProcArgsForCall = append(fake.mountProcArgsForCall, struct{}{}) 28 fake.mountProcMutex.Unlock() 29 if fake.MountProcStub != nil { 30 return fake.MountProcStub() 31 } else { 32 return fake.mountProcReturns.result1 33 } 34 } 35 36 func (fake *FakeContainerInitializer) MountProcCallCount() int { 37 fake.mountProcMutex.RLock() 38 defer fake.mountProcMutex.RUnlock() 39 return len(fake.mountProcArgsForCall) 40 } 41 42 func (fake *FakeContainerInitializer) MountProcReturns(result1 error) { 43 fake.MountProcStub = nil 44 fake.mountProcReturns = struct { 45 result1 error 46 }{result1} 47 } 48 49 func (fake *FakeContainerInitializer) MountTmp() error { 50 fake.mountTmpMutex.Lock() 51 fake.mountTmpArgsForCall = append(fake.mountTmpArgsForCall, struct{}{}) 52 fake.mountTmpMutex.Unlock() 53 if fake.MountTmpStub != nil { 54 return fake.MountTmpStub() 55 } else { 56 return fake.mountTmpReturns.result1 57 } 58 } 59 60 func (fake *FakeContainerInitializer) MountTmpCallCount() int { 61 fake.mountTmpMutex.RLock() 62 defer fake.mountTmpMutex.RUnlock() 63 return len(fake.mountTmpArgsForCall) 64 } 65 66 func (fake *FakeContainerInitializer) MountTmpReturns(result1 error) { 67 fake.MountTmpStub = nil 68 fake.mountTmpReturns = struct { 69 result1 error 70 }{result1} 71 } 72 73 var _ linux_backend.ContainerInitializer = new(FakeContainerInitializer)