You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(ai-usage): close branch-coverage gaps in the embeddings/buildAiUsage patch
adapters.ts's new embedding-error handler never exercised its non-Error-thrown
branch, and buildAiUsage's model/costUsd/effort branches are structurally
unreachable through its 3 real call sites (none ever pass costUsd/effort, and
model is always defined) -- add a direct unit test via a new
__selfHostAiInternals export, matching this repo's existing internals-export
convention for testing private helpers.
it("buildAiUsage omits every undefined field and includes every defined one (direct unit test — costUsd/effort/an-undefined-model are never both exercised through the 3 real call sites)",()=>{
0 commit comments