Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
goSDN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model 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
danet
goSDN
Commits
caeae902
Commit
caeae902
authored
1 year ago
by
Malte Bauch
Browse files
Options
Downloads
Patches
Plain Diff
Update plugin mock
parent
c3bb6578
No related branches found
No related tags found
1 merge request
!544
Resolve "Plugin is created and persisted in the database even if the creation of a network element failed"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
controller/mocks/Plugin.go
+14
-0
14 additions, 0 deletions
controller/mocks/Plugin.go
with
14 additions
and
0 deletions
controller/mocks/Plugin.go
+
14
−
0
View file @
caeae902
...
@@ -219,6 +219,20 @@ func (_m *Plugin) PruneConfigFalse(value []byte) ([]byte, error) {
...
@@ -219,6 +219,20 @@ func (_m *Plugin) PruneConfigFalse(value []byte) ([]byte, error) {
return
r0
,
r1
return
r0
,
r1
}
}
// Remove provides a mock function with given fields:
func
(
_m
*
Plugin
)
Remove
()
error
{
ret
:=
_m
.
Called
()
var
r0
error
if
rf
,
ok
:=
ret
.
Get
(
0
)
.
(
func
()
error
);
ok
{
r0
=
rf
()
}
else
{
r0
=
ret
.
Error
(
0
)
}
return
r0
}
// Restart provides a mock function with given fields:
// Restart provides a mock function with given fields:
func
(
_m
*
Plugin
)
Restart
()
error
{
func
(
_m
*
Plugin
)
Restart
()
error
{
ret
:=
_m
.
Called
()
ret
:=
_m
.
Called
()
...
...
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