MCPcopy Create free account
hub / github.com/ding113/claude-code-hub / api-key-auth-cache.test.ts

File api-key-auth-cache.test.ts

tests/unit/security/api-key-auth-cache.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { beforeEach, describe, expect, test, vi } from "vitest";
2import type { Key } from "@/types/key";
3import type { User } from "@/types/user";
4

Callers

nothing calls this directly

Calls 7

findActiveKeyByKeyStringFunction · 0.85
validateApiKeyAndGetUserFunction · 0.85
createKeyFunction · 0.85
buildKeyFunction · 0.70
buildUserFunction · 0.70
updateKeyFunction · 0.50
deleteKeyFunction · 0.50

Tested by

no test coverage detected