forked from kyma-project/kyma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
topics_converter_interface.go
50 lines (41 loc) · 1.43 KB
/
topics_converter_interface.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
// Code generated by mockery v1.0.0
package automock
import gqlschema "github.com/kyma-project/kyma/components/ui-api-layer/internal/gqlschema"
import mock "github.com/stretchr/testify/mock"
import storage "github.com/kyma-project/kyma/components/ui-api-layer/internal/domain/content/storage"
// topicsConverterInterface is an autogenerated mock type for the topicsConverterInterface type
type topicsConverterInterface struct {
mock.Mock
}
// ExtractSection provides a mock function with given fields: documents, internal
func (_m *topicsConverterInterface) ExtractSection(documents []storage.Document, internal bool) ([]gqlschema.Section, error) {
ret := _m.Called(documents, internal)
var r0 []gqlschema.Section
if rf, ok := ret.Get(0).(func([]storage.Document, bool) []gqlschema.Section); ok {
r0 = rf(documents, internal)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]gqlschema.Section)
}
}
var r1 error
if rf, ok := ret.Get(1).(func([]storage.Document, bool) error); ok {
r1 = rf(documents, internal)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// ToGQL provides a mock function with given fields: in
func (_m *topicsConverterInterface) ToGQL(in []gqlschema.TopicEntry) *gqlschema.JSON {
ret := _m.Called(in)
var r0 *gqlschema.JSON
if rf, ok := ret.Get(0).(func([]gqlschema.TopicEntry) *gqlschema.JSON); ok {
r0 = rf(in)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*gqlschema.JSON)
}
}
return r0
}