MCPcopy
hub / github.com/zer0yu/CyberSecurityRSS / coerce_check_result

Function coerce_check_result

scripts/opml_sync.py:185–191  ·  view source on GitHub ↗
(result: Any)

Source from the content-addressed store, hash-verified

183
184
185def coerce_check_result(result: Any) -> FeedCheckResult:
186 if isinstance(result, FeedCheckResult):
187 return result
188 alive = bool(result)
189 if alive:
190 return FeedCheckResult(alive=True, kind="alive", reason="mock_alive")
191 return FeedCheckResult(alive=False, kind="hard_fail", reason="mock_dead")
192
193
194class HttpFeedChecker:

Callers 1

check_urls_parallelFunction · 0.85

Calls 1

FeedCheckResultClass · 0.85

Tested by

no test coverage detected