MCPcopy Create free account
hub / github.com/apache/maka / classifyConnectionTestResult

Function classifyConnectionTestResult

packages/runtime/src/test-connection.ts:497–506  ·  view source on GitHub ↗
(result: ConnectionTestResult)

Source from the content-addressed store, hash-verified

495}
496
497function classifyConnectionTestResult(result: ConnectionTestResult): ConnectionEffectError {
498 if (result.statusCode !== undefined) {
499 const statusError = classifyConnectionEffectStatus(result.statusCode);
500 if (statusError.kind !== 'unknown') return statusError;
501 }
502 return {
503 kind: connectionTestErrorKind(result.errorClass),
504 ...(result.statusCode === undefined ? {} : { statusCode: result.statusCode }),
505 };
506}
507
508function connectionTestMeasurements(
509 result: ConnectionTestResult,

Callers 1

runConnectionTestEffectFunction · 0.85

Calls 2

connectionTestErrorKindFunction · 0.85

Tested by

no test coverage detected