Remove unused code.
This commit is contained in:
parent
2026787ce4
commit
500b540406
1 changed files with 0 additions and 15 deletions
|
@ -42,21 +42,6 @@ func mockClient(t *testing.T) *mock.KeyVaultClient {
|
|||
return mock.NewKeyVaultClient(ctrl)
|
||||
}
|
||||
|
||||
func mockCreateClient(t *testing.T) *mock.KeyVaultClient {
|
||||
t.Helper()
|
||||
ctrl := gomock.NewController(t)
|
||||
client := mock.NewKeyVaultClient(ctrl)
|
||||
old := createClient
|
||||
createClient = func(ctx context.Context, opts apiv1.Options) (KeyVaultClient, error) {
|
||||
return client, nil
|
||||
}
|
||||
t.Cleanup(func() {
|
||||
createClient = old
|
||||
ctrl.Finish()
|
||||
})
|
||||
return client
|
||||
}
|
||||
|
||||
func createJWK(t *testing.T, pub crypto.PublicKey) *keyvault.JSONWebKey {
|
||||
t.Helper()
|
||||
b, err := json.Marshal(&jose.JSONWebKey{
|
||||
|
|
Loading…
Reference in a new issue