/
directory_content_formatter.go
72 lines (56 loc) · 1.8 KB
/
directory_content_formatter.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
// Code generated by mockery v2.24.0. DO NOT EDIT.
package mocks
import (
fs "io/fs"
mock "github.com/stretchr/testify/mock"
)
// DirectoryContentFormatter is an autogenerated mock type for the DirectoryContentFormatter type
type DirectoryContentFormatter struct {
mock.Mock
}
// File provides a mock function with given fields: path, info
func (_m *DirectoryContentFormatter) File(path string, info fs.FileInfo) (string, error) {
ret := _m.Called(path, info)
var r0 string
var r1 error
if rf, ok := ret.Get(0).(func(string, fs.FileInfo) (string, error)); ok {
return rf(path, info)
}
if rf, ok := ret.Get(0).(func(string, fs.FileInfo) string); ok {
r0 = rf(path, info)
} else {
r0 = ret.Get(0).(string)
}
if rf, ok := ret.Get(1).(func(string, fs.FileInfo) error); ok {
r1 = rf(path, info)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// RootPath provides a mock function with given fields: path
func (_m *DirectoryContentFormatter) RootPath(path string) {
_m.Called(path)
}
// Title provides a mock function with given fields: title
func (_m *DirectoryContentFormatter) Title(title string) string {
ret := _m.Called(title)
var r0 string
if rf, ok := ret.Get(0).(func(string) string); ok {
r0 = rf(title)
} else {
r0 = ret.Get(0).(string)
}
return r0
}
type mockConstructorTestingTNewDirectoryContentFormatter interface {
mock.TestingT
Cleanup(func())
}
// NewDirectoryContentFormatter creates a new instance of DirectoryContentFormatter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDirectoryContentFormatter(t mockConstructorTestingTNewDirectoryContentFormatter) *DirectoryContentFormatter {
mock := &DirectoryContentFormatter{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}