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 package mocks
......
// Code generated by mockery v2.15.0. DO NOT EDIT. // Code generated by mockery v2.22.1. DO NOT EDIT.
package mocks package mocks
...@@ -21,6 +21,11 @@ func (_m *References) Get(ctx context.Context, spaceId string, envId string, _a3 ...@@ -21,6 +21,11 @@ func (_m *References) Get(ctx context.Context, spaceId string, envId string, _a3
ret := _m.Called(ctx, spaceId, envId, _a3) ret := _m.Called(ctx, spaceId, envId, _a3)
var r0 []*items.Item 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 { if rf, ok := ret.Get(0).(func(context.Context, string, string, []*references.Reference) []*items.Item); ok {
r0 = rf(ctx, spaceId, envId, _a3) r0 = rf(ctx, spaceId, envId, _a3)
} else { } else {
...@@ -29,7 +34,6 @@ func (_m *References) Get(ctx context.Context, spaceId string, envId string, _a3 ...@@ -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 { if rf, ok := ret.Get(1).(func(context.Context, string, string, []*references.Reference) []*references.Reference); ok {
r1 = rf(ctx, spaceId, envId, _a3) r1 = rf(ctx, spaceId, envId, _a3)
} else { } else {
...@@ -38,7 +42,6 @@ func (_m *References) Get(ctx context.Context, spaceId string, envId string, _a3 ...@@ -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 { if rf, ok := ret.Get(2).(func(context.Context, string, string, []*references.Reference) error); ok {
r2 = rf(ctx, spaceId, envId, _a3) r2 = rf(ctx, spaceId, envId, _a3)
} else { } else {
...@@ -48,6 +51,50 @@ func (_m *References) Get(ctx context.Context, spaceId string, envId string, _a3 ...@@ -48,6 +51,50 @@ func (_m *References) Get(ctx context.Context, spaceId string, envId string, _a3
return r0, r1, r2 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 { type mockConstructorTestingTNewReferences interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment