MCPcopy Create free account
hub / github.com/Codeplain-ai/codeplain / test_capture_crash_never_raises

Function test_capture_crash_never_raises

tests/test_telemetry.py:213–219  ·  view source on GitHub ↗
(monkeypatch)

Source from the content-addressed store, hash-verified

211
212
213def test_capture_crash_never_raises(monkeypatch):
214 monkeypatch.setattr(
215 sentry_sdk, "capture_exception", lambda *a, **k: (_ for _ in ()).throw(RuntimeError("sdk broken"))
216 )
217 init_with_transport(CaptureTransport())
218
219 assert capture_crash(make_exc_info(KeyError("boom")), None, make_args()) is False

Callers

nothing calls this directly

Calls 5

capture_crashFunction · 0.90
init_with_transportFunction · 0.85
CaptureTransportClass · 0.85
make_exc_infoFunction · 0.85
make_argsFunction · 0.85

Tested by

no test coverage detected