mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-09-10 04:06:06 +00:00
fixup unused functions/vars
This commit is contained in:
@@ -115,16 +115,6 @@ func (m *mockUISessionStore) DeleteByDID(did string) {
|
||||
}
|
||||
}
|
||||
|
||||
type mockRefresher struct {
|
||||
invalidateSessionFunc func(did string)
|
||||
}
|
||||
|
||||
func (m *mockRefresher) InvalidateSession(did string) {
|
||||
if m.invalidateSessionFunc != nil {
|
||||
m.invalidateSessionFunc(did)
|
||||
}
|
||||
}
|
||||
|
||||
// ServeAuthorize tests
|
||||
|
||||
func TestServer_ServeAuthorize_MissingHandle(t *testing.T) {
|
||||
|
||||
@@ -2,7 +2,6 @@ package token
|
||||
|
||||
import (
|
||||
"context"
|
||||
"crypto/rsa"
|
||||
"crypto/tls"
|
||||
"database/sql"
|
||||
"encoding/base64"
|
||||
@@ -22,7 +21,6 @@ import (
|
||||
// Shared test key to avoid generating a new RSA key for each test
|
||||
// Generating a 2048-bit RSA key takes ~0.15s, so reusing one key saves ~4.5s for 32 tests
|
||||
var (
|
||||
sharedTestKey *rsa.PrivateKey
|
||||
sharedTestKeyPath string
|
||||
sharedTestKeyOnce sync.Once
|
||||
sharedTestKeyDir string
|
||||
|
||||
@@ -19,7 +19,6 @@ import (
|
||||
// Shared test key to avoid generating a new RSA key for each test
|
||||
// Generating a 2048-bit RSA key takes ~0.15s, so reusing one key saves significant time
|
||||
var (
|
||||
issuerSharedTestKey *rsa.PrivateKey
|
||||
issuerSharedTestKeyPath string
|
||||
issuerSharedTestKeyOnce sync.Once
|
||||
issuerSharedTestKeyDir string
|
||||
|
||||
Reference in New Issue
Block a user