MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / primaryProvider

Function primaryProvider

common/src/util/__tests__/error-abort.test.ts:409–415  ·  view source on GitHub ↗
(signal: { aborted: boolean })

Source from the content-addressed store, hash-verified

407
408 describe('mixed pattern with fallback', () => {
409 async function primaryProvider(signal: { aborted: boolean }): Promise<PromptResult<string>> {
410 if (signal.aborted) {
411 return promptAborted()
412 }
413 // Simulate primary provider failure
414 throw new Error('Primary provider unavailable')
415 }
416
417 async function fallbackProvider(signal: { aborted: boolean }): Promise<PromptResult<string>> {
418 if (signal.aborted) {

Callers 1

callWithFallbackFunction · 0.85

Calls 1

promptAbortedFunction · 0.90

Tested by

no test coverage detected