← Về thư mục
tests/test_kernel_supervisor.py
- FakeKernel · class · L12-L42 — class FakeKernel
- init · method · L13-L20 — def init(self, name: str)
- is_alive · method · L22-L23 — def is_alive(self)
- shutdown · method · L25-L27 — def shutdown(self)
- interrupt · method · L29-L30 — def interrupt(self)
- restart · method · L32-L34 — def restart(self)
- kill_worker · method · L36-L38 — def kill_worker(self)
- inspect_variables · method · L40-L42 — def inspect_variables(self, *, limit=200)
- _factory · function · L45-L51 — def _factory(created: list[FakeKernel], prefix: str)
- create · function · L46-L49 — def create()
- test_ensure_reuses_matching_worker_and_replaces_changed_or_dead_worker · function · L54-L75 — def test_ensure_reuses_matching_worker_and_replaces_changed_or_dead_worker()
- test_failed_factory_preserves_the_current_worker_and_generation · function · L78-L91 — def test_failed_factory_preserves_the_current_worker_and_generation()
- fail · function · L83-L84 — def fail()
- test_variable_inspection_never_creates_a_slot_or_worker · function · L94-L105 — def test_variable_inspection_never_creates_a_slot_or_worker()
- test_variable_inspection_rejects_a_worker_replaced_mid_read · function · L108-L136 — def test_variable_inspection_rejects_a_worker_replaced_mid_read()
- SlowInspector · class · L112-L116 — class SlowInspector(FakeKernel)
- inspect_variables · method · L113-L116 — def inspect_variables(self, *, limit=200)
- inspect · function · L123-L127 — def inspect()
- test_dead_replacement_is_rejected_without_destroying_healthy_current · function · L139-L151 — def test_dead_replacement_is_rejected_without_destroying_healthy_current()
- test_reused_slot_refreshes_factory_for_a_later_start · function · L154-L165 — def test_reused_slot_refreshes_factory_for_a_later_start()
- test_verified_candidate_publish_is_exact_and_installs_restart_factory · function · L168-L188 — def test_verified_candidate_publish_is_exact_and_installs_restart_factory()
- test_candidate_publish_rejects_a_stale_expected_lease_without_replacement · function · L191-L209 — def test_candidate_publish_rejects_a_stale_expected_lease_without_replacement()
- test_restart_stop_and_start_keep_a_monotonic_session_generation · function · L212-L233 — def test_restart_stop_and_start_keep_a_monotonic_session_generation()
- test_explicit_stop_before_first_worker_records_manual_state · function · L236-L247 — def test_explicit_stop_before_first_worker_records_manual_state()
- test_interrupt_and_stop_all_cover_python_and_r_slots · function · L250-L264 — def test_interrupt_and_stop_all_cover_python_and_r_slots()
- test_blocking_restart_hook_does_not_block_concurrent_interrupt · function · L267-L287 — def test_blocking_restart_hook_does_not_block_concurrent_interrupt()
- hook · function · L274-L277 — def hook(kernel)
- test_stale_lease_cannot_interrupt_kill_restart_or_abandon_a_new_worker · function · L290-L316 — def test_stale_lease_cannot_interrupt_kill_restart_or_abandon_a_new_worker()
- test_abandon_current_detaches_zombie_without_shutdown_then_recovers · function · L319-L331 — def test_abandon_current_detaches_zombie_without_shutdown_then_recovers()
- test_shutdown_if_current_closes_only_the_exact_desynchronized_worker · function · L334-L347 — def test_shutdown_if_current_closes_only_the_exact_desynchronized_worker()
- test_unknown_slots_are_empty_and_restart_requires_a_factory · function · L350-L370 — def test_unknown_slots_are_empty_and_restart_requires_a_factory()
- _FakeProc · class · L373-L380 — class _FakeProc
- init · method · L374-L375 — def init(self)
- kill · method · L377-L380 — def kill(self)
- test_manager_kill_worker_is_exact_and_idempotent · function · L383-L391 — def test_manager_kill_worker_is_exact_and_idempotent()