tests and cleanup
This commit is contained in:
parent
d0b8dfe340
commit
1d72aff00a
11 changed files with 468 additions and 123 deletions
|
@ -46,20 +46,20 @@ func TestKeys(t *testing.T) {
|
|||
`,
|
||||
},
|
||||
},
|
||||
//{
|
||||
// name: "empty list",
|
||||
// args: args{
|
||||
// k: func() op.KeyProvider {
|
||||
// m := mock.NewMockKeyProvider(gomock.NewController(t))
|
||||
// m.EXPECT().GetKeySet(gomock.Any()).Return(nil, nil)
|
||||
// return m
|
||||
// }(),
|
||||
// },
|
||||
// res: res{
|
||||
// statusCode: http.StatusInternalServerError,
|
||||
// contentType: "application/json",
|
||||
// },
|
||||
//},
|
||||
{
|
||||
name: "empty list",
|
||||
args: args{
|
||||
k: func() op.KeyProvider {
|
||||
m := mock.NewMockKeyProvider(gomock.NewController(t))
|
||||
m.EXPECT().GetKeySet(gomock.Any()).Return(nil, nil)
|
||||
return m
|
||||
}(),
|
||||
},
|
||||
res: res{
|
||||
statusCode: http.StatusOK,
|
||||
contentType: "application/json",
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "list",
|
||||
args: args{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue