Skip to content
Snippets Groups Projects
Commit 09a3ed5d authored by Anton Sattarov's avatar Anton Sattarov :cucumber:
Browse files

gen mocks

parent c9fd28d7
No related branches found
No related tags found
No related merge requests found
// Code generated by mockery v2.15.0. DO NOT EDIT.
// Code generated by mockery v2.22.1. DO NOT EDIT.
package mocks
......
// Code generated by mockery v2.15.0. DO NOT EDIT.
// Code generated by mockery v2.22.1. DO NOT EDIT.
package mocks
......@@ -21,6 +21,11 @@ func (_m *References) Get(ctx context.Context, spaceId string, envId string, _a3
ret := _m.Called(ctx, spaceId, envId, _a3)
var r0 []*items.Item
var r1 []*references.Reference
var r2 error
if rf, ok := ret.Get(0).(func(context.Context, string, string, []*references.Reference) ([]*items.Item, []*references.Reference, error)); ok {
return rf(ctx, spaceId, envId, _a3)
}
if rf, ok := ret.Get(0).(func(context.Context, string, string, []*references.Reference) []*items.Item); ok {
r0 = rf(ctx, spaceId, envId, _a3)
} else {
......@@ -29,7 +34,6 @@ func (_m *References) Get(ctx context.Context, spaceId string, envId string, _a3
}
}
var r1 []*references.Reference
if rf, ok := ret.Get(1).(func(context.Context, string, string, []*references.Reference) []*references.Reference); ok {
r1 = rf(ctx, spaceId, envId, _a3)
} else {
......@@ -38,7 +42,6 @@ func (_m *References) Get(ctx context.Context, spaceId string, envId string, _a3
}
}
var r2 error
if rf, ok := ret.Get(2).(func(context.Context, string, string, []*references.Reference) error); ok {
r2 = rf(ctx, spaceId, envId, _a3)
} else {
......@@ -48,6 +51,50 @@ func (_m *References) Get(ctx context.Context, spaceId string, envId string, _a3
return r0, r1, r2
}
// Publish provides a mock function with given fields: ctx, spaceId, envId, _a3, recursive, force
func (_m *References) Publish(ctx context.Context, spaceId string, envId string, _a3 []*references.Reference, recursive bool, force bool) ([]*references.Reference, []*references.Reference, []*references.Reference, error) {
ret := _m.Called(ctx, spaceId, envId, _a3, recursive, force)
var r0 []*references.Reference
var r1 []*references.Reference
var r2 []*references.Reference
var r3 error
if rf, ok := ret.Get(0).(func(context.Context, string, string, []*references.Reference, bool, bool) ([]*references.Reference, []*references.Reference, []*references.Reference, error)); ok {
return rf(ctx, spaceId, envId, _a3, recursive, force)
}
if rf, ok := ret.Get(0).(func(context.Context, string, string, []*references.Reference, bool, bool) []*references.Reference); ok {
r0 = rf(ctx, spaceId, envId, _a3, recursive, force)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]*references.Reference)
}
}
if rf, ok := ret.Get(1).(func(context.Context, string, string, []*references.Reference, bool, bool) []*references.Reference); ok {
r1 = rf(ctx, spaceId, envId, _a3, recursive, force)
} else {
if ret.Get(1) != nil {
r1 = ret.Get(1).([]*references.Reference)
}
}
if rf, ok := ret.Get(2).(func(context.Context, string, string, []*references.Reference, bool, bool) []*references.Reference); ok {
r2 = rf(ctx, spaceId, envId, _a3, recursive, force)
} else {
if ret.Get(2) != nil {
r2 = ret.Get(2).([]*references.Reference)
}
}
if rf, ok := ret.Get(3).(func(context.Context, string, string, []*references.Reference, bool, bool) error); ok {
r3 = rf(ctx, spaceId, envId, _a3, recursive, force)
} else {
r3 = ret.Error(3)
}
return r0, r1, r2, r3
}
type mockConstructorTestingTNewReferences interface {
mock.TestingT
Cleanup(func())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment