MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / keyFor

Function keyFor

packages/engine/src/services/extractionCache.test.ts:19–32  ·  view source on GitHub ↗
(videoPath: string, overrides: Partial<CacheKeyInput> = {})

Source from the content-addressed store, hash-verified

17} from "./extractionCache.js";
18
19const keyFor = (videoPath: string, overrides: Partial<CacheKeyInput> = {}): CacheKeyInput => {
20 const stat = readKeyStat(videoPath);
21 if (!stat) throw new Error(`keyFor fixture missing on disk: ${videoPath}`);
22 return {
23 videoPath,
24 mtimeMs: stat.mtimeMs,
25 size: stat.size,
26 mediaStart: 0,
27 duration: 3,
28 fps: 30,
29 format: "jpg",
30 ...overrides,
31 };
32};
33
34describe("extractionCache constants", () => {
35 it("exposes the v2 schema prefix", () => {

Callers 1

baseFunction · 0.85

Calls 1

readKeyStatFunction · 0.85

Tested by

no test coverage detected