MCPcopy Index your code
hub / github.com/CapSoftware/Cap / isDurationClose

Function isDurationClose

apps/web/workflows/edit-video.ts:77–83  ·  view source on GitHub ↗
(actual: number, expected: number)

Source from the content-addressed store, hash-verified

75}
76
77function isDurationClose(actual: number, expected: number) {
78 return (
79 Number.isFinite(actual) &&
80 Number.isFinite(expected) &&
81 Math.abs(actual - expected) <= getDurationTolerance(expected)
82 );
83}
84
85export async function editVideoWorkflow(
86 payload: EditVideoWorkflowPayload,

Callers 1

verifyRenderedEditOutputFunction · 0.70

Calls 1

getDurationToleranceFunction · 0.70

Tested by

no test coverage detected