MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / test_abort

Method test_abort

tests/test_abort_controller.py:59–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57 self.assertFalse(ctrl.signal.aborted)
58
59 def test_abort(self):
60 ctrl = AbortController()
61 ctrl.abort("user_interrupt")
62 self.assertTrue(ctrl.signal.aborted)
63 self.assertEqual(ctrl.signal.reason, "user_interrupt")
64
65 def test_abort_idempotent(self):
66 ctrl = AbortController()

Callers

nothing calls this directly

Calls 2

abortMethod · 0.95
AbortControllerClass · 0.90

Tested by

no test coverage detected