MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / ok

Function ok

src/utils/network-check.ts:182–182  ·  view source on GitHub ↗
(s: ProbeStatus)

Source from the content-addressed store, hash-verified

180export function formatDiagnostic(d: { public: NetworkDiagnostic; local: ProbeResult[] }): string {
181 const lines: string[] = [];
182 const ok = (s: ProbeStatus) => s === 'ok';
183 const symbol = (s: ProbeStatus) => ok(s) ? '✓' : s === 'timeout' ? '⏱' : s === 'connection_refused' ? '✗' : s === 'dns_failed' ? '?' : '✗';
184 const internetLabel =
185 d.public.internet === 'ok' ? 'Online ✓'

Callers 2

symbolFunction · 0.85
formatDiagnosticFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected