← Về thư mục
tests/test_r_kernel.py
- fake_rscript · function · L29-L31 — def fake_rscript()
- test_r_argv_shape_carries_the_fd_swap · function · L37-L47 — def test_r_argv_shape_carries_the_fd_swap(fake_rscript)
- test_execute_persistence_and_stray_stdout · function · L53-L65 — def test_execute_persistence_and_stray_stdout(fake_rscript, tmp_path)
- test_r_variable_inspector_uses_dedicated_idle_protocol · function · L68-L87 — def test_r_variable_inspector_uses_dedicated_idle_protocol(fake_rscript, tmp_path)
- test_r_variable_inspector_source_fails_closed_on_dynamic_bindings · function · L90-L108 — def test_r_variable_inspector_source_fails_closed_on_dynamic_bindings()
- test_r_worker_source_binds_nothing_in_the_user_namespace · function · L111-L133 — def test_r_worker_source_binds_nothing_in_the_user_namespace()
- test_r_kernel_cannot_inherit_host_api_keys_or_loader_injection · function · L136-L161 — def test_r_kernel_cannot_inherit_host_api_keys_or_loader_injection( fake_rscript, monkeypatch, tmp_path )
- test_child_stderr_flood_does_not_deadlock · function · L164-L177 — def test_child_stderr_flood_does_not_deadlock(fake_rscript, tmp_path)
- test_worker_death_raises_with_stderr · function · L180-L186 — def test_worker_death_raises_with_stderr(fake_rscript, tmp_path)
- test_restart_resets_state_and_bumps_generation · function · L189-L200 — def test_restart_resets_state_and_bumps_generation(fake_rscript, tmp_path)
- test_interrupt_returns_interrupted_result_and_keeps_worker · function · L203-L218 — def test_interrupt_returns_interrupted_result_and_keeps_worker(fake_rscript, tmp_path)
- test_interrupt_reaches_r_even_when_the_spawning_process_ignores_sigint · function · L222-L260 — def test_interrupt_reaches_r_even_when_the_spawning_process_ignores_sigint( fake_rscript, tmp_path )
- interrupt_once_streaming · function · L245-L248 — def interrupt_once_streaming(_text: str) -> None
- test_resolver_prefers_env_then_named_r_then_path · function · L266-L300 — def test_resolver_prefers_env_then_named_r_then_path(monkeypatch, tmp_path)
- _E · class · L270-L273 — class _E
- init · method · L271-L273 — def init(self, name, rscript)
- test_spawn_without_any_r_raises · function · L303-L310 — def test_spawn_without_any_r_raises(monkeypatch)
- test_real_r_file_reads_are_executed_observations_without_global_masks · function · L319-L368 — def test_real_r_file_reads_are_executed_observations_without_global_masks(tmp_path)
- test_real_r_persistent_namespace_error_lineno_and_quit_guard · function · L372-L394 — def test_real_r_persistent_namespace_error_lineno_and_quit_guard(tmp_path)
- test_real_r_variable_inspector_reports_values_without_invoking_bindings · function · L398-L461 — def test_real_r_variable_inspector_reports_values_without_invoking_bindings(tmp_path)
- test_real_r_clearing_the_global_env_leaves_the_worker_and_its_observers · function · L465-L510 — def test_real_r_clearing_the_global_env_leaves_the_worker_and_its_observers( tmp_path, )
- test_real_r_inspector_and_quit_guard_do_not_live_in_the_user_namespace · function · L514-L540 — def test_real_r_inspector_and_quit_guard_do_not_live_in_the_user_namespace( tmp_path, )
- test_real_r_worker_survives_hostile_cells · function · L544-L573 — def test_real_r_worker_survives_hostile_cells(tmp_path)
- test_real_r_bounds_captured_output_without_reading_it_whole · function · L577-L606 — def test_real_r_bounds_captured_output_without_reading_it_whole(tmp_path)
- test_real_r_reports_no_peak_rss_rather_than_zero · function · L610-L637 — def test_real_r_reports_no_peak_rss_rather_than_zero(tmp_path)
- test_real_r_refuses_an_execute_frame_with_no_host_sinks · function · L641-L674 — def test_real_r_refuses_an_execute_frame_with_no_host_sinks(tmp_path)
- test_real_r_streams_stdout_while_the_cell_runs · function · L678-L709 — def test_real_r_streams_stdout_while_the_cell_runs(tmp_path)
- test_real_r_streaming_is_bounded_like_the_capture · function · L713-L728 — def test_real_r_streaming_is_bounded_like_the_capture(tmp_path)
- test_real_r_error_lineno_survives_streaming · function · L732-L747 — def test_real_r_error_lineno_survives_streaming(tmp_path)
- test_real_r_interrupt_survives_a_spawning_process_that_ignores_sigint · function · L752-L790 — def test_real_r_interrupt_survives_a_spawning_process_that_ignores_sigint(tmp_path)
- interrupt_once_streaming · function · L770-L776 — def interrupt_once_streaming(_text: str) -> None: # One SIGINT, armed by the first drained chunk: the drain keeps # delivering after the first, and a conda Rscript can take # seconds to start — a timed signal lands in that window.