-
Notifications
You must be signed in to change notification settings - Fork 161
/
fake_release_index_reporter.go
45 lines (38 loc) · 1.34 KB
/
fake_release_index_reporter.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
// This file was generated by counterfeiter
package fakes
import (
"sync"
"github.com/cloudfoundry/bosh-cli/releasedir"
)
type FakeReleaseIndexReporter struct {
ReleaseIndexAddedStub func(name, desc string, err error)
releaseIndexAddedMutex sync.RWMutex
releaseIndexAddedArgsForCall []struct {
name string
desc string
err error
}
}
func (fake *FakeReleaseIndexReporter) ReleaseIndexAdded(name string, desc string, err error) {
fake.releaseIndexAddedMutex.Lock()
fake.releaseIndexAddedArgsForCall = append(fake.releaseIndexAddedArgsForCall, struct {
name string
desc string
err error
}{name, desc, err})
fake.releaseIndexAddedMutex.Unlock()
if fake.ReleaseIndexAddedStub != nil {
fake.ReleaseIndexAddedStub(name, desc, err)
}
}
func (fake *FakeReleaseIndexReporter) ReleaseIndexAddedCallCount() int {
fake.releaseIndexAddedMutex.RLock()
defer fake.releaseIndexAddedMutex.RUnlock()
return len(fake.releaseIndexAddedArgsForCall)
}
func (fake *FakeReleaseIndexReporter) ReleaseIndexAddedArgsForCall(i int) (string, string, error) {
fake.releaseIndexAddedMutex.RLock()
defer fake.releaseIndexAddedMutex.RUnlock()
return fake.releaseIndexAddedArgsForCall[i].name, fake.releaseIndexAddedArgsForCall[i].desc, fake.releaseIndexAddedArgsForCall[i].err
}
var _ releasedir.ReleaseIndexReporter = new(FakeReleaseIndexReporter)