-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDatabaseViews.go
More file actions
102 lines (83 loc) · 2.5 KB
/
Copy pathDatabaseViews.go
File metadata and controls
102 lines (83 loc) · 2.5 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
// Code generated by mockery v1.0.0. DO NOT EDIT.
package arangomock
import context "context"
import driver "github.com/arangodb/go-driver"
import mock "github.com/stretchr/testify/mock"
// DatabaseViews is an autogenerated mock type for the DatabaseViews type
type DatabaseViews struct {
mock.Mock
}
// CreateArangoSearchView provides a mock function with given fields: ctx, name, options
func (_m *DatabaseViews) CreateArangoSearchView(ctx context.Context, name string, options *driver.ArangoSearchViewProperties) (driver.ArangoSearchView, error) {
ret := _m.Called(ctx, name, options)
var r0 driver.ArangoSearchView
if rf, ok := ret.Get(0).(func(context.Context, string, *driver.ArangoSearchViewProperties) driver.ArangoSearchView); ok {
r0 = rf(ctx, name, options)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(driver.ArangoSearchView)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context, string, *driver.ArangoSearchViewProperties) error); ok {
r1 = rf(ctx, name, options)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// View provides a mock function with given fields: ctx, name
func (_m *DatabaseViews) View(ctx context.Context, name string) (driver.View, error) {
ret := _m.Called(ctx, name)
var r0 driver.View
if rf, ok := ret.Get(0).(func(context.Context, string) driver.View); ok {
r0 = rf(ctx, name)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(driver.View)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
r1 = rf(ctx, name)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// ViewExists provides a mock function with given fields: ctx, name
func (_m *DatabaseViews) ViewExists(ctx context.Context, name string) (bool, error) {
ret := _m.Called(ctx, name)
var r0 bool
if rf, ok := ret.Get(0).(func(context.Context, string) bool); ok {
r0 = rf(ctx, name)
} else {
r0 = ret.Get(0).(bool)
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
r1 = rf(ctx, name)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// Views provides a mock function with given fields: ctx
func (_m *DatabaseViews) Views(ctx context.Context) ([]driver.View, error) {
ret := _m.Called(ctx)
var r0 []driver.View
if rf, ok := ret.Get(0).(func(context.Context) []driver.View); ok {
r0 = rf(ctx)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]driver.View)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context) error); ok {
r1 = rf(ctx)
} else {
r1 = ret.Error(1)
}
return r0, r1
}