-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathrepository_mock.go
53 lines (46 loc) · 1.25 KB
/
repository_mock.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
// Code generated by smock; DO NOT EDIT.
package main
type RepositoryMock struct {
HeadNameFunc func() string
HeadShortNameFunc func() string
RemoteEndpointHostFunc func() string
RemoteEndpointPathFunc func() string
RootDirectoryFunc func() string
LsRemoteFunc func() (RefToHash, error)
}
func (m *RepositoryMock) HeadName() string {
if m.HeadNameFunc == nil {
panic("This method is not defined.")
}
return m.HeadNameFunc()
}
func (m *RepositoryMock) HeadShortName() string {
if m.HeadShortNameFunc == nil {
panic("This method is not defined.")
}
return m.HeadShortNameFunc()
}
func (m *RepositoryMock) RemoteEndpointHost() string {
if m.RemoteEndpointHostFunc == nil {
panic("This method is not defined.")
}
return m.RemoteEndpointHostFunc()
}
func (m *RepositoryMock) RemoteEndpointPath() string {
if m.RemoteEndpointPathFunc == nil {
panic("This method is not defined.")
}
return m.RemoteEndpointPathFunc()
}
func (m *RepositoryMock) RootDirectory() string {
if m.RootDirectoryFunc == nil {
panic("This method is not defined.")
}
return m.RootDirectoryFunc()
}
func (m *RepositoryMock) LsRemote() (RefToHash, error) {
if m.LsRemoteFunc == nil {
panic("This method is not defined.")
}
return m.LsRemoteFunc()
}