-
Notifications
You must be signed in to change notification settings - Fork 199
/
importStartHandlerStub.go
50 lines (40 loc) · 1.1 KB
/
importStartHandlerStub.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
package mock
// ImportStartHandlerStub -
type ImportStartHandlerStub struct {
SetStartImportCalled func() error
ResetStartImportCalled func() error
ShouldStartImportCalled func() bool
IsAfterExportBeforeImportCalled func() bool
}
// IsAfterExportBeforeImport -
func (ish *ImportStartHandlerStub) IsAfterExportBeforeImport() bool {
if ish.IsAfterExportBeforeImportCalled != nil {
return ish.IsAfterExportBeforeImportCalled()
}
return false
}
// ShouldStartImport -
func (ish *ImportStartHandlerStub) ShouldStartImport() bool {
if ish.ShouldStartImportCalled != nil {
return ish.ShouldStartImportCalled()
}
return false
}
// ResetStartImport -
func (ish *ImportStartHandlerStub) ResetStartImport() error {
if ish.ResetStartImportCalled != nil {
return ish.ResetStartImportCalled()
}
return nil
}
// SetStartImport -
func (ish *ImportStartHandlerStub) SetStartImport() error {
if ish.SetStartImportCalled != nil {
return ish.SetStartImportCalled()
}
return nil
}
// IsInterfaceNil -
func (ish *ImportStartHandlerStub) IsInterfaceNil() bool {
return ish == nil
}