Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
perxis-go
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package Registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
perxis
perxis-go
Commits
09a3ed5d
Commit
09a3ed5d
authored
1 year ago
by
Anton Sattarov
Browse files
Options
Downloads
Patches
Plain Diff
gen mocks
parent
c9fd28d7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pkg/references/mocks/Middleware.go
+1
-1
1 addition, 1 deletion
pkg/references/mocks/Middleware.go
pkg/references/mocks/References.go
+50
-3
50 additions, 3 deletions
pkg/references/mocks/References.go
with
51 additions
and
4 deletions
pkg/references/mocks/Middleware.go
+
1
−
1
View file @
09a3ed5d
// Code generated by mockery v2.
15.0
. DO NOT EDIT.
// Code generated by mockery v2.
22.1
. DO NOT EDIT.
package
mocks
package
mocks
...
...
This diff is collapsed.
Click to expand it.
pkg/references/mocks/References.go
+
50
−
3
View file @
09a3ed5d
// 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
())
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment