-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added testcase for more functions in server/command.go #846
base: add_server/command.go_testcases
Are you sure you want to change the base?
Added testcase for more functions in server/command.go #846
Conversation
@@ -655,3 +655,353 @@ func TestHandleUnmuteAll(t *testing.T) { | |||
}) | |||
} | |||
} | |||
|
|||
func TestHandleMuteCommand(t *testing.T) { | |||
mockKvStore, mockAPI, _, _, _ := GetTestSetup(t) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mockAPI is never used
a []string | ||
b []string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a []string | |
b []string | |
arr1 []string | |
arr2 []string |
setup: func() { | ||
mockKvStore.EXPECT().Get(SubscriptionsKey, gomock.Any()).DoAndReturn(func(key string, value **Subscriptions) error { | ||
*value = &Subscriptions{ | ||
Repositories: map[string][]*Subscription{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
create a util for this, a similar thing is used below as well
Summary
Added testcase for the following api/command.go functions:
Parent PR
#845