Repository navigation
Agent KB_tests_p10
grisun0 edited this page Oct 16, 2026
·
20 revisions
Previous: KB_tests_p9.md
- Doc: Shared loop runner, monitor surface and store-fidelity regressions.
- Layer: testing
- Language: py
- Symbols:
-
store(function, line 21)def store(tmp_path, monkeypatch) -
test_parse_loop_line_flags(function, line 30)def test_parse_loop_line_flags() -
test_parse_loop_line_rejects_bad_input(function, line 42)def test_parse_loop_line_rejects_bad_input() -
test_config_clamps_operating_range(function, line 50)def test_config_clamps_operating_range() -
test_loop_commands_share_the_runner(function, line 57)def test_loop_commands_share_the_runner() -
test_guard_judge_survives_rule_changes(function, line 67)def test_guard_judge_survives_rule_changes(store) -
test_custom_tool_trigger_matches_services(function, line 79)def test_custom_tool_trigger_matches_services(store) -
test_intercept_wait_wakes_on_decide(function, line 90)def test_intercept_wait_wakes_on_decide(store) -
test_archive_restore_keeps_edges_anchors_scope(function, line 110)def test_archive_restore_keeps_edges_anchors_scope(store) -
test_asset_insert_enforces_task_gate(function, line 133)def test_asset_insert_enforces_task_gate(store) -
test_worker_bash_fallback_uses_streaming_runner(function, line 143)def test_worker_bash_fallback_uses_streaming_runner(store, monkeypatch) -
test_terminal_guard_is_safe_without_tty(function, line 172)def test_terminal_guard_is_safe_without_tty() -
test_autonomous_mode_flag_and_input_restore(function, line 181)def test_autonomous_mode_flag_and_input_restore(monkeypatch) -
test_automsf_intent_needs_a_module_path(function, line 196)def test_automsf_intent_needs_a_module_path() -
test_run_loop_drives_the_engine_and_reports(function, line 204)def test_run_loop_drives_the_engine_and_reports(store, monkeypatch) -
test_shell_verb_observer_print_is_recursion_safe(function, line 240)def test_shell_verb_observer_print_is_recursion_safe() -
test_terminal_stream_bypasses_stdout_redirect(function, line 259)def test_terminal_stream_bypasses_stdout_redirect(monkeypatch) -
test_judge_prompt_is_versioned_untrusted_json(function, line 276)def test_judge_prompt_is_versioned_untrusted_json(store, monkeypatch) -
test_worker_resumes_skipping_executed_steps(function, line 293)def test_worker_resumes_skipping_executed_steps(store) -
test_run_wrapup_records_fact_on_exhaustion(function, line 319)def test_run_wrapup_records_fact_on_exhaustion(store, monkeypatch) -
test_finding_report_drafted_by_reporter_agent(function, line 334)def test_finding_report_drafted_by_reporter_agent(store, monkeypatch) -
_seed_cold_facts(function, line 353)def _seed_cold_facts(graph, loop, count) -
_prime_cold(function, line 363)def _prime_cold(compactor, loop) -
test_cold_digest_applies_background_body(function, line 372)def test_cold_digest_applies_background_body(store) -
test_cold_background_disabled_requests_nothing(function, line 394)def test_cold_background_disabled_requests_nothing(store, monkeypatch) -
test_cold_background_worker_caches_compressed_body(function, line 412)def test_cold_background_worker_caches_compressed_body(store, monkeypatch) -
test_cross_task_fleet_operations(function, line 440)def test_cross_task_fleet_operations(store) -
test_llm_health_persists_across_registries(function, line 474)def test_llm_health_persists_across_registries(tmp_path, monkeypatch) -
test_llm_pool_rotates_equal_priority_heads(function, line 488)def test_llm_pool_rotates_equal_priority_heads(store, monkeypatch) -
test_llm_pool_connect_retry_before_failover(function, line 507)def test_llm_pool_connect_retry_before_failover(store, monkeypatch) -
test_broadcast_events_cursor_resume(function, line 528)def test_broadcast_events_cursor_resume(store) -
test_loop_broadcast_sse_route_declared(function, line 547)def test_loop_broadcast_sse_route_declared() -
test_noa_archive_written_when_enabled(function, line 556)def test_noa_archive_written_when_enabled(store, monkeypatch) -
test_proxy_safe_send_error_swallows_dead_client(function, line 576)def test_proxy_safe_send_error_swallows_dead_client() -
test_proxy_server_silences_connection_noise(function, line 593)def test_proxy_server_silences_connection_noise() -
test_proxy_handler_only_uses_safe_error_sender(function, line 613)def test_proxy_handler_only_uses_safe_error_sender() -
test_progress_emit_never_feeds_stdout_redirect(function, line 619)def test_progress_emit_never_feeds_stdout_redirect(capsys) -
test_run_with_progress_finishes_and_streams(function, line 641)def test_run_with_progress_finishes_and_streams(store, capsys) -
test_format_activity_line(function, line 685)def test_format_activity_line() -
test_run_with_progress_streams_activity_events(function, line 692)def test_run_with_progress_streams_activity_events(store, capsys) -
test_steer_delivered_to_agent_as_operator_message(function, line 726)def test_steer_delivered_to_agent_as_operator_message(store, monkeypatch) -
test_steer_cleared_after_delivery(function, line 770)def test_steer_cleared_after_delivery(store) -
test_thread_stdout_router_routes_by_thread(function, line 781)def test_thread_stdout_router_routes_by_thread(capsys) -
test_run_with_progress_restores_stdout_on_cancel(function, line 806)def test_run_with_progress_restores_stdout_on_cancel(store, monkeypatch, capsys) -
test_run_loop_treats_systemexit_as_cancel(function, line 849)def test_run_loop_treats_systemexit_as_cancel(store, monkeypatch) -
test_wake_bus_signals_and_suppresses(function, line 878)def test_wake_bus_signals_and_suppresses(store) -
test_engine_wake_preempts_heartbeat(function, line 892)def test_engine_wake_preempts_heartbeat(store) -
test_engine_heartbeat_replans_when_idle(function, line 927)def test_engine_heartbeat_replans_when_idle(store) -
test_agent_background_jobs_and_output(function, line 951)def test_agent_background_jobs_and_output(store) -
test_agent_persistent_shell_session(function, line 999)def test_agent_persistent_shell_session(store) -
test_reporter_runs_background_and_applies(function, line 1037)def test_reporter_runs_background_and_applies(store, monkeypatch) -
test_evidence_ranged_read_and_roles(function, line 1068)def test_evidence_ranged_read_and_roles(store) -
test_finalize_parks_open_intents(function, line 1100)def test_finalize_parks_open_intents(store) -
test_agent_prompt_includes_skills_block(function, line 1121)def test_agent_prompt_includes_skills_block(store, monkeypatch) -
test_auto_verb_overrides_payload_target_for_the_run(function, line 1145)def test_auto_verb_overrides_payload_target_for_the_run() -
test_round_fuses_intel_into_world_model(function, line 1167)def test_round_fuses_intel_into_world_model(store, monkeypatch) -
test_agentic_falls_back_to_next_member(function, line 1180)def test_agentic_falls_back_to_next_member(store, monkeypatch) -
test_bootstrap_passes_target_to_auto_populate(function, line 1234)def test_bootstrap_passes_target_to_auto_populate(tmp_path, monkeypatch) -
test_auto_populate_verb_carries_target(function, line 1252)def test_auto_populate_verb_carries_target() -
test_worker_llm_steps_filter_sudo(function, line 1259)def test_worker_llm_steps_filter_sudo(store, monkeypatch) -
test_pyautomate_filters_to_requested_target(function, line 1289)def test_pyautomate_filters_to_requested_target(tmp_path, monkeypatch) -
test_lazy_addon_positional_target_overrides_rhost(function, line 1305)def test_lazy_addon_positional_target_overrides_rhost(monkeypatch) -
test_shutdown_loop_runtime_cleans_everything(function, line 1328)def test_shutdown_loop_runtime_cleans_everything(store, monkeypatch) -
test_do_qa_runs_shutdown_and_dedupes_killall(function, line 1367)def test_do_qa_runs_shutdown_and_dedupes_killall(monkeypatch) -
test_lazynmap_routing_and_steps(function, line 1389)def test_lazynmap_routing_and_steps(store) -
test_lazynmap_overrides_payload_rhost_for_scope(function, line 1437)def test_lazynmap_overrides_payload_rhost_for_scope(store) -
test_run_tee_interactive_keeps_operator_terminal(function, line 1462)def test_run_tee_interactive_keeps_operator_terminal(monkeypatch) -
test_run_tee_loop_context_detaches_child(function, line 1496)def test_run_tee_loop_context_detaches_child(monkeypatch) -
test_run_tee_stdin_devnull_in_loop_context(function, line 1530)def test_run_tee_stdin_devnull_in_loop_context() -
test_run_tee_thread_timeout_kills_child(function, line 1545)def test_run_tee_thread_timeout_kills_child() -
test_plausibility_filter_drops_hallucinated_flags(function, line 1566)def test_plausibility_filter_drops_hallucinated_flags(store, monkeypatch) -
test_dev_smoke_tools_run_green(function, line 1600)def test_dev_smoke_tools_run_green() -
test_lazy_view_command_registered(function, line 1610)def test_lazy_view_command_registered() -
_wait(function, line 97)def _wait() -
_fake_streaming(function, line 150)def _fake_streaming(command, on_output, timeout_sec) -
_FakeEngine(class, line 212)class _FakeEngine -
_Shell(class, line 244)class _Shell -
_observer(function, line 250)def _observer(line) -
_complete(function, line 281)def _complete(self, prompt, max_tokens) -
_exec(function, line 308)def _exec(command) -
scripted(function, line 497)def scripted(model, prompt, max_tokens) -
flaky(function, line 516)def flaky(model, prompt, max_tokens) -
_Stub(class, line 582)class _Stub -
_DummyHandler(class, line 599)class _DummyHandler -
_SlowEngine(class, line 648)class _SlowEngine -
_Engine(class, line 699)class _Engine -
_Completions(class, line 737)class _Completions -
_worker(function, line 793)def _worker() -
_StuckEngine(class, line 816)class _StuckEngine -
_interrupt(function, line 833)def _interrupt() -
_FakeEngine(class, line 855)class _FakeEngine -
_exit(function, line 868)def _exit() -
_round(function, line 905)def _round(task_id_arg, workers, executor) -
_round(function, line 938)def _round(task_id_arg, workers, executor) -
_Shell(class, line 1151)class _Shell -
_BadCompletions(class, line 1188)class _BadCompletions -
_GoodCompletions(class, line 1192)class _GoodCompletions -
_resolve(function, line 1209)def _resolve(exclude) -
_executor(function, line 1244)def _executor(command) -
_Shell(class, line 1312)class _Shell -
_fake_run(function, line 1315)def _fake_run(command) -
_Proxy(class, line 1354)class _Proxy -
_fake_shutdown(function, line 1375)def _fake_shutdown(reason) -
_Shell(class, line 1402)class _Shell -
_Shell(class, line 1444)class _Shell -
_FakeProc(class, line 1478)class _FakeProc -
_FakeProc(class, line 1508)class _FakeProc -
__init__(method, line 215)def __init__(self) -
bind_shell(method, line 218)def bind_shell(self, shell) -
set_concurrency(method, line 221)def set_concurrency(self, value) -
orchestrate(method, line 224)def orchestrate(self) -
onecmd_plus_hooks(method, line 245)def onecmd_plus_hooks(self, command) -
send_error(method, line 585)def send_error(self, code, message) -
__init__(method, line 600)def __init__(self) -
__init__(method, line 651)def __init__(self) -
bind_shell(method, line 655)def bind_shell(self, shell) -
set_concurrency(method, line 658)def set_concurrency(self, value) -
orchestrate(method, line 661)def orchestrate(self) -
__init__(method, line 702)def __init__(self) -
bind_shell(method, line 706)def bind_shell(self, shell) -
set_concurrency(method, line 709)def set_concurrency(self, value) -
orchestrate(method, line 712)def orchestrate(self) -
create(method, line 738)def create(self) -
__init__(method, line 819)def __init__(self) -
bind_shell(method, line 823)def bind_shell(self, shell) -
set_concurrency(method, line 826)def set_concurrency(self, value) -
orchestrate(method, line 829)def orchestrate(self) -
__init__(method, line 858)def __init__(self) -
bind_shell(method, line 862)def bind_shell(self, shell) -
set_concurrency(method, line 865)def set_concurrency(self, value) -
__init__(method, line 1152)def __init__(self) -
onecmd_plus_hooks(method, line 1155)def onecmd_plus_hooks(self, command) -
create(method, line 1189)def create(self) -
__init__(method, line 1193)def __init__(self) -
create(method, line 1196)def create(self) -
stop(method, line 1355)def stop(self) -
onecmd_plus_hooks(method, line 1403)def onecmd_plus_hooks(self, command) -
__init__(method, line 1445)def __init__(self) -
onecmd_plus_hooks(method, line 1448)def onecmd_plus_hooks(self, command) -
__init__(method, line 1479)def __init__(self) -
wait(method, line 1485)def wait(self, timeout) -
__init__(method, line 1509)def __init__(self) -
wait(method, line 1515)def wait(self, timeout)
-
- Depends on:
cli/commands/exploit_migrated.py,cli/commands/lazyloop.py,cli/commands/lazyops.py,cli/commands/session_ops.py,core/autonomous.py,core/config.py,core/process.py,core/terminal_guard.py,modules/__init__.py,modules/auto_registry.py,modules/command_executor.py,modules/lazy_engine.py,modules/lazy_loop.py,modules/lazy_proxy.py,modules/lazy_runner.py,modules/lazy_skills.py,modules/llm_factory.py,modules/llm_pool.py,modules/loop_progress.py,modules/tools/__init__.py
- Doc: Token-level streaming: factory, pool deltas, agent reassembly.
- Layer: testing
- Language: py
- Symbols:
-
_sandbox(function, line 13)def _sandbox(tmp_path, monkeypatch) -
test_stream_complete_collects_deltas_and_falls_back(function, line 20)def test_stream_complete_collects_deltas_and_falls_back(monkeypatch) -
test_pool_forwards_deltas_when_stage_on(function, line 48)def test_pool_forwards_deltas_when_stage_on(tmp_path, monkeypatch) -
test_pool_stays_unstreamed_when_stage_off(function, line 72)def test_pool_stays_unstreamed_when_stage_off(tmp_path, monkeypatch) -
test_agent_streaming_reassembles_tool_calls_and_reports_deltas(function, line 96)def test_agent_streaming_reassembles_tool_calls_and_reports_deltas() -
_Backend(class, line 24)class _Backend -
_Broken(class, line 37)class _Broken -
_stream(function, line 57)def _stream(model, prompt, max_tokens, on_delta) -
_stream(function, line 80)def _stream() -
_plain(function, line 84)def _plain() -
_Delta(class, line 100)class _Delta -
_Completions(class, line 106)class _Completions -
stream_generate(method, line 27)def stream_generate(self, prompt) -
stream_generate(method, line 40)def stream_generate(self, prompt) -
__init__(method, line 101)def __init__(self, content, reasoning, tool_calls) -
__init__(method, line 107)def __init__(self) -
create(method, line 110)def create(self)
-
- Depends on:
modules/agent_runner.py,modules/lazy_loop.py,modules/llm_factory.py,modules/loop_ai_bridge.py
- Doc: Worker safety: step sanitizer, task-wide dedupe, sudo skip, worker pool.
- Layer: testing
- Language: py
- Symbols:
-
payload_store(function, line 15)def payload_store(tmp_path, monkeypatch) -
_engine(function, line 28)def _engine(tmp_path, monkeypatch) -
_worker(function, line 37)def _worker(loop, engine, task_id, name) -
test_sanitizer_retargets_and_repairs_commands(function, line 53)def test_sanitizer_retargets_and_repairs_commands(tmp_path, monkeypatch) -
test_worker_dedupes_commands_already_executed_for_task(function, line 70)def test_worker_dedupes_commands_already_executed_for_task(tmp_path, monkeypatch) -
test_worker_skips_sudo_when_unavailable(function, line 88)def test_worker_skips_sudo_when_unavailable(tmp_path, monkeypatch) -
test_run_round_reuses_worker_pool(function, line 105)def test_run_round_reuses_worker_pool(payload_store, monkeypatch) -
test_needs_sudo_detects_wrappers_and_segments(function, line 140)def test_needs_sudo_detects_wrappers_and_segments(tmp_path, monkeypatch) -
test_worker_skips_sudo_alias_before_execution(function, line 153)def test_worker_skips_sudo_alias_before_execution(tmp_path, monkeypatch) -
test_worker_runs_sudo_alias_when_passwordless_available(function, line 175)def test_worker_runs_sudo_alias_when_passwordless_available(tmp_path, monkeypatch) -
executor(function, line 95)def executor(command) -
_fake_execute(function, line 122)def _fake_execute(self, node, executor, timeout_sec)
-
- Depends on:
modules/__init__.py,modules/lazy_engine.py,modules/lazy_loop.py,utils.py
- Doc: Tests for lazygui backend services.
- Layer: testing
- Language: py
- Symbols:
-
TestBackendDescriptor(class, line 26)class TestBackendDescriptor -
TestBackendStatus(class, line 41)class TestBackendStatus -
TestTeamserverCredentials(class, line 52)class TestTeamserverCredentials -
TestBackendSignals(class, line 77)class TestBackendSignals -
ConcreteBackend(class, line 151)class ConcreteBackend(Backend) -
TestTeamserverBackendConstruction(class, line 173)class TestTeamserverBackendConstruction -
TestTeamserverPayloadParsing(class, line 206)class TestTeamserverPayloadParsing -
TestTeamserverBackendLifecycle(class, line 302)class TestTeamserverBackendLifecycle -
TestTopologyDataContract(class, line 328)class TestTopologyDataContract -
TestTopologyBuilderFromPayload(class, line 344)class TestTopologyBuilderFromPayload -
test_construction(method, line 29)def test_construction(self) -
test_immutable(method, line 35)def test_immutable(self) -
test_values(method, line 44)def test_values(self) -
test_construction(method, line 55)def test_construction(self) -
test_default_tls(method, line 67)def test_default_tls(self) -
test_immutable(method, line 71)def test_immutable(self) -
test_signals_exist(method, line 80)def test_signals_exist(self) -
test_initial_status_is_disconnected(method, line 93)def test_initial_status_is_disconnected(self) -
test_status_transition(method, line 97)def test_status_transition(self) -
test_status_no_duplicate_emit(method, line 104)def test_status_no_duplicate_emit(self) -
test_descriptor_read_only(method, line 113)def test_descriptor_read_only(self) -
test_known_sessions_defaults(method, line 118)def test_known_sessions_defaults(self) -
test_known_topology_default(method, line 123)def test_known_topology_default(self) -
test_known_campaigns_default(method, line 129)def test_known_campaigns_default(self) -
test_world_model_default(method, line 133)def test_world_model_default(self) -
test_session_state_default(method, line 138)def test_session_state_default(self) -
_make_backend(method, line 146)def _make_backend() -
start(method, line 154)def start(self) -
stop(method, line 157)def stop(self) -
send_command(method, line 160)def send_command(self, command, target_session) -
refresh(method, line 163)def refresh(self) -
resize_terminal(method, line 166)def resize_terminal(self, columns, rows) -
feed_terminal_input(method, line 169)def feed_terminal_input(self, data) -
test_construction(method, line 176)def test_construction(self) -
test_construction_with_parent(method, line 184)def test_construction_with_parent(self) -
test_build_url(method, line 191)def test_build_url(self) -
test_build_url_no_trailing_slash(method, line 198)def test_build_url_no_trailing_slash(self) -
test_update_from_empty_payload(method, line 209)def test_update_from_empty_payload(self) -
test_non_mapping_payload(method, line 216)def test_non_mapping_payload(self) -
test_parse_graph_nodes_from_valid_payload(method, line 223)def test_parse_graph_nodes_from_valid_payload(self) -
test_parse_graph_edges_from_valid_payload(method, line 242)def test_parse_graph_edges_from_valid_payload(self) -
test_parse_empty_graph_payload(method, line 259)def test_parse_empty_graph_payload(self) -
test_update_operator(method, line 267)def test_update_operator(self) -
test_update_operator_no_username(method, line 285)def test_update_operator_no_username(self) -
test_update_sessions_empty(method, line 294)def test_update_sessions_empty(self) -
test_stop_without_start(method, line 305)def test_stop_without_start(self) -
test_stop_sets_disconnected(method, line 312)def test_stop_sets_disconnected(self) -
test_send_command_does_not_raise(method, line 321)def test_send_command_does_not_raise(self) -
test_construct_and_compare(method, line 331)def test_construct_and_compare(self) -
test_none_converted(method, line 338)def test_none_converted(self) -
make_backend(method, line 347)def make_backend(self) -
test_builds_c2_node(method, line 354)def test_builds_c2_node(self) -
test_builds_beacon_nodes(method, line 362)def test_builds_beacon_nodes(self) -
test_builds_edges_c2_to_beacon(method, line 379)def test_builds_edges_c2_to_beacon(self) -
test_builds_host_nodes_from_discovered(method, line 396)def test_builds_host_nodes_from_discovered(self) -
test_builds_port_nodes(method, line 412)def test_builds_port_nodes(self) -
test_builds_connected_hosts(method, line 428)def test_builds_connected_hosts(self) -
test_topology_emitted_on_change(method, line 439)def test_topology_emitted_on_change(self) -
test_topology_not_emitted_on_no_change(method, line 455)def test_topology_not_emitted_on_no_change(self)
-
- Depends on:
lazygui/config/constants.py,lazygui/services/backend.py,lazygui/services/models.py,lazygui/services/teamserver_backend.py
- Doc: Tests for lazygui graph widget contracts.
- Layer: testing
- Language: py
- Symbols:
-
_get_qapp(function, line 36)def _get_qapp() -
TestColorResolution(class, line 43)class TestColorResolution -
TestRadiusResolution(class, line 79)class TestRadiusResolution -
TestColorMap(class, line 106)class TestColorMap -
TestGraphNodeItem(class, line 114)class TestGraphNodeItem -
TestGraphEdgeItem(class, line 181)class TestGraphEdgeItem -
TestGraphScene(class, line 212)class TestGraphScene -
TestGraphView(class, line 307)class TestGraphView -
TestGraphViewWithDatabaseFixture(class, line 333)class TestGraphViewWithDatabaseFixture -
TestGraphNodeItemWithIcon(class, line 360)class TestGraphNodeItemWithIcon -
test_c2_color(method, line 46)def test_c2_color(self) -
test_beacon_color(method, line 50)def test_beacon_color(self) -
test_host_color(method, line 54)def test_host_color(self) -
test_port_color(method, line 58)def test_port_color(self) -
test_windows_os_hint(method, line 62)def test_windows_os_hint(self) -
test_linux_os_hint(method, line 66)def test_linux_os_hint(self) -
test_macos_os_hint(method, line 70)def test_macos_os_hint(self) -
test_unknown_default(method, line 74)def test_unknown_default(self) -
test_c2_radius(method, line 82)def test_c2_radius(self) -
test_beacon_radius(method, line 86)def test_beacon_radius(self) -
test_host_radius(method, line 91)def test_host_radius(self) -
test_port_radius(method, line 96)def test_port_radius(self) -
test_default_radius(method, line 101)def test_default_radius(self) -
test_all_keys_present(method, line 109)def test_all_keys_present(self) -
test_construction(method, line 117)def test_construction(self) -
test_identifiers(method, line 127)def test_identifiers(self) -
test_selection_behaviour(method, line 134)def test_selection_behaviour(self) -
test_callback_on_selected(method, line 144)def test_callback_on_selected(self) -
test_callback_on_context_menu(method, line 157)def test_callback_on_context_menu(self) -
test_node_without_callbacks_does_not_raise(method, line 173)def test_node_without_callbacks_does_not_raise(self) -
test_construction_with_nodes(method, line 184)def test_construction_with_nodes(self) -
test_update_position(method, line 198)def test_update_position(self) -
test_construction(method, line 215)def test_construction(self) -
test_set_topology_with_data(method, line 221)def test_set_topology_with_data(self) -
test_set_empty_topology(method, line 235)def test_set_empty_topology(self) -
test_force_layout_single_node(method, line 243)def test_force_layout_single_node(self) -
test_selected_node_id_none_when_empty(method, line 252)def test_selected_node_id_none_when_empty(self) -
test_physics_completion(method, line 258)def test_physics_completion(self) -
test_physics_stops_without_nodes(method, line 273)def test_physics_stops_without_nodes(self) -
test_node_selected_signal(method, line 280)def test_node_selected_signal(self) -
test_node_context_menu_signal(method, line 289)def test_node_context_menu_signal(self) -
test_construction(method, line 310)def test_construction(self) -
test_set_topology(method, line 316)def test_set_topology(self) -
test_fit_to_content(method, line 325)def test_fit_to_content(self) -
test_full_pipeline(method, line 336)def test_full_pipeline(self) -
test_node_with_icon(method, line 363)def test_node_with_icon(self) -
test_hover_behavior(method, line 369)def test_hover_behavior(self) -
test_movable_flag(method, line 375)def test_movable_flag(self) -
_cb(function, line 149)def _cb(nid) -
_cb(function, line 163)def _cb(nid, pos) -
_capture(function, line 296)def _capture(nid, pos)
-
- Depends on:
lazygui/config/constants.py,lazygui/services/models.py,lazygui/widgets/graph_view.py
- Doc: Tests for lazygui domain models.
- Layer: testing
- Language: py
- Symbols:
-
TestGraphNode(class, line 30)class TestGraphNode -
TestGraphEdge(class, line 74)class TestGraphEdge -
TestTopology(class, line 105)class TestTopology -
TestBeaconResult(class, line 143)class TestBeaconResult -
TestDashboardPayload(class, line 196)class TestDashboardPayload -
TestCampaignSummary(class, line 221)class TestCampaignSummary -
TestEventRecord(class, line 256)class TestEventRecord -
TestSessionModel(class, line 280)class TestSessionModel -
TestBackendKind(class, line 303)class TestBackendKind -
TestEventLevel(class, line 314)class TestEventLevel -
test_minimal_construction(method, line 33)def test_minimal_construction(self) -
test_full_construction(method, line 41)def test_full_construction(self) -
test_default_metadata(method, line 56)def test_default_metadata(self) -
test_equality(method, line 61)def test_equality(self) -
test_immutable(method, line 68)def test_immutable(self) -
test_construction(method, line 77)def test_construction(self) -
test_defaults(method, line 91)def test_defaults(self) -
test_equality(method, line 97)def test_equality(self) -
test_empty_topology(method, line 108)def test_empty_topology(self) -
test_empty_classmethod(method, line 115)def test_empty_classmethod(self) -
test_populated_topology(method, line 120)def test_populated_topology(self) -
test_equality(method, line 130)def test_equality(self) -
test_empty_list_keywords(method, line 137)def test_empty_list_keywords(self) -
test_minimal_construction(method, line 146)def test_minimal_construction(self) -
test_full_construction(method, line 154)def test_full_construction(self) -
test_equality(method, line 174)def test_equality(self) -
test_empty_fields_default_to_empty_string(method, line 181)def test_empty_fields_default_to_empty_string(self) -
test_defaults(method, line 199)def test_defaults(self) -
test_populated(method, line 206)def test_populated(self) -
test_equality(method, line 213)def test_equality(self) -
test_defaults(method, line 224)def test_defaults(self) -
test_with_counts(method, line 234)def test_with_counts(self) -
test_equality(method, line 248)def test_equality(self) -
test_now_uses_utc(method, line 259)def test_now_uses_utc(self) -
test_fields(method, line 263)def test_fields(self) -
test_numeric_levels(method, line 271)def test_numeric_levels(self) -
test_construction(method, line 283)def test_construction(self) -
test_metadata_default(method, line 298)def test_metadata_default(self) -
test_values(method, line 306)def test_values(self) -
test_str_compat(method, line 310)def test_str_compat(self) -
test_order(method, line 317)def test_order(self) -
test_compare(method, line 322)def test_compare(self)
-
- Depends on:
lazygui/services/models.py
- Doc: Spec coverage for :mod:
cli.lazynmap_post. - Layer: testing
- Language: py
- Symbols:
-
_seed_addon(function, line 37)def _seed_addon(addons) -
_seed_environment(function, line 59)def _seed_environment(tmp) -
_make_engine(function, line 71)def _make_engine(sessions, addons, tools) -
_ConsoleRecorder(class, line 81)class _ConsoleRecorder -
PostScanOutputSpec(class, line 88)class PostScanOutputSpec(TestCase) -
PostScanToggleSpec(class, line 186)class PostScanToggleSpec(TestCase) -
PostScanResilienceSpec(class, line 228)class PostScanResilienceSpec(TestCase) -
print(method, line 84)def print(self, line) -
test_writes_plan_world_model_and_event(method, line 91)def test_writes_plan_world_model_and_event(self) -
test_world_model_is_merged_not_overwritten(method, line 117)def test_world_model_is_merged_not_overwritten(self) -
test_event_record_carries_target_and_counts(method, line 142)def test_event_record_carries_target_and_counts(self) -
test_console_receives_plan_preview_lines(method, line 166)def test_console_receives_plan_preview_lines(self) -
test_disabled_payload_skips_all_writes(method, line 189)def test_disabled_payload_skips_all_writes(self) -
test_string_falsy_toggle_is_respected(method, line 210)def test_string_falsy_toggle_is_respected(self) -
test_engine_failure_still_emits_event_and_updates_world_model(method, line 231)def test_engine_failure_still_emits_event_and_updates_world_model(self) -
_broken_factory(function, line 235)def _broken_factory()
-
- Depends on:
cli/exploration.py,cli/lazynmap_post.py,cli/recon_plan.py
- Doc: LazyNmap sudo branches: unattended abort vs interactive prompt.
- Layer: testing
- Language: py
- Symbols:
-
_fake_bin(function, line 18)def _fake_bin(tmp_path) -
_run_script(function, line 31)def _run_script(tmp_path, extra_env) -
test_autonomous_mode_aborts_without_passwordless_sudo(function, line 48)def test_autonomous_mode_aborts_without_passwordless_sudo(tmp_path) -
test_interactive_mode_keeps_the_sudo_prompt_path(function, line 55)def test_interactive_mode_keeps_the_sudo_prompt_path(tmp_path)
-
- Doc: Legacy shim contract plus referenced-script existence.
- Layer: testing
- Language: py
- Symbols:
-
TestLegacyShims(class, line 23)class TestLegacyShims -
TestReferencedScriptsExist(class, line 43)class TestReferencedScriptsExist -
test_no_regular_file_clones(method, line 24)def test_no_regular_file_clones(self) -
test_symlinks_resolve_into_contrib(method, line 32)def test_symlinks_resolve_into_contrib(self) -
test_exploit_migrated_script_paths(method, line 44)def test_exploit_migrated_script_paths(self)
-
- Doc: Tests for modules/lesson_ingestor.py.
- Layer: testing
- Language: py
- Symbols:
-
TestLessonLearned(class, line 15)class TestLessonLearned -
TestLessonIngestor(class, line 35)class TestLessonIngestor -
test_from_dict(method, line 16)def test_from_dict(self) -
test_from_dict_minimal(method, line 29)def test_from_dict_minimal(self) -
test_expert_mapping(method, line 36)def test_expert_mapping(self) -
test_ingest_with_mock_backends(method, line 43)def test_ingest_with_mock_backends(self, tmp_path) -
test_ingest_unmapped_topic(method, line 62)def test_ingest_unmapped_topic(self, tmp_path) -
test_ingest_no_backends(method, line 79)def test_ingest_no_backends(self, monkeypatch) -
test_load_from_file(method, line 99)def test_load_from_file(self, tmp_path) -
test_load_from_file_missing(method, line 119)def test_load_from_file_missing(self, tmp_path) -
test_ingest_all(method, line 124)def test_ingest_all(self, tmp_path)
-
- Depends on:
modules/lesson_ingestor.py
- Doc: Lint quality gate.
- Layer: testing
- Language: py
- Symbols:
-
_run_ruff(function, line 63)def _run_ruff(args) -
test_ruff_check_clean(function, line 75)def test_ruff_check_clean(target) -
test_ruff_format_clean(function, line 84)def test_ruff_format_clean(target) -
test_lint_targets_exist(function, line 94)def test_lint_targets_exist() -
test_format_targets_exist(function, line 100)def test_format_targets_exist()
-
- Doc: Tests for modules/live_surface.py.
- Layer: testing
- Language: py
- Symbols:
-
_world(function, line 25)def _world() -
test_empty_world_is_well_formed(function, line 55)def test_empty_world_is_well_formed() -
test_none_world_is_tolerated(function, line 63)def test_none_world_is_tolerated() -
test_hosts_and_services_become_nodes(function, line 68)def test_hosts_and_services_become_nodes() -
test_owned_host_pulses_and_counts_as_compromised(function, line 79)def test_owned_host_pulses_and_counts_as_compromised() -
test_host_with_credential_pulses_even_if_not_owned(function, line 87)def test_host_with_credential_pulses_even_if_not_owned() -
test_runs_service_edge_is_emitted_once(function, line 95)def test_runs_service_edge_is_emitted_once() -
test_stats_block_counts(function, line 102)def test_stats_block_counts() -
test_malformed_host_entry_is_skipped(function, line 109)def test_malformed_host_entry_is_skipped() -
test_compromised_states_constant_matches_world_model(function, line 116)def test_compromised_states_constant_matches_world_model()
-
- Depends on:
modules/live_surface.py
Next: KB_tests_p11.md
Generated offline by readmenator from commit 146a52570ef7. Edits here are overwritten by readmenator . --rebuild.
Start
Wiki
- community_0_cli_commands
- community_10_modules_opsec_scorer
- community_11_modules_finding_lifecycle
- community_12_modules_kerberos_core
- community_13_modules_saas_attacks
- community_14_modules_polymorphic_engine
- community_15_contrib_legacy
- community_16_scripts_journal
- community_17_modules_backdoor
- community_18_poc_tui
- community_19_scripts_check_contract_manifest
- community_1_modules_lazyc2
- community_20_scripts_migrate_lazyown
- community_21_tools
- community_22_orphans
- community_2_cli
- community_3_modules_autonomous_daemon
- community_4_modules_lazy_loop
- community_5_lazygui_panels
- community_6_skills_claude_md_orchestrator
- community_7_static_js
- community_8_modules_llm_budget
- community_9_modules_atomic_exploit_bridge
- concepts
- queries
- REPORT
Agent Docs
- API
- API_p10
- API_p11
- API_p12
- API_p13
- API_p14
- API_p15
- API_p16
- API_p17
- API_p18
- API_p19
- API_p2
- API_p20
- API_p21
- API_p22
- API_p23
- API_p3
- API_p4
- API_p5
- API_p6
- API_p7
- API_p8
- API_p9
- ARCHITECTURE
- ARCHITECTURE_p2
- ARCHITECTURE_p3
- ARCHITECTURE_p4
- ARCHITECTURE_p5
- ARCHITECTURE_p6
- ARCHITECTURE_p7
- CONCEPTS
- GOTCHAS
- INDEX
- INDEX_p2
- INDEX_p3
- KB_backdoor
- KB_blueprints
- KB_cgi-bin
- KB_claude_md_orchestrator
- KB_cli
- KB_cli_p2
- KB_cli_p3
- KB_cli_p4
- KB_cli_p5
- KB_commands
- KB_commands_p2
- KB_commands_p3
- KB_commands_p4
- KB_config
- KB_contract
- KB_core
- KB_core_p2
- KB_devtools
- KB_extensions
- KB_hermes-lazyown
- KB_integrations
- KB_js
- KB_js_p2
- KB_js_p3
- KB_js_p4
- KB_lazyc2
- KB_lazygui
- KB_lazyown-docker
- KB_legacy
- KB_legacy_p2
- KB_misc
- KB_modules
- KB_modules_p10
- KB_modules_p11
- KB_modules_p12
- KB_modules_p13
- KB_modules_p14
- KB_modules_p2
- KB_modules_p3
- KB_modules_p4
- KB_modules_p5
- KB_modules_p6
- KB_modules_p7
- KB_modules_p8
- KB_modules_p9
- KB_modules_tools
- KB_palettes
- KB_panels
- KB_plugins
- KB_poc_tui
- KB_root
- KB_root_p2
- KB_rootkit
- KB_scripts
- KB_security
- KB_services
- KB_skills
- KB_skills_claude_md_orchestrator_tests
- KB_skills_p2
- KB_skills_p3
- KB_skills_p4
- KB_skills_p5
- KB_skills_tests
- KB_tests
- KB_tests_p10
- KB_tests_p11
- KB_tests_p12
- KB_tests_p13
- KB_tests_p14
- KB_tests_p15
- KB_tests_p16
- KB_tests_p17
- KB_tests_p2
- KB_tests_p3
- KB_tests_p4
- KB_tests_p5
- KB_tests_p6
- KB_tests_p7
- KB_tests_p8
- KB_tests_p9
- KB_theme
- KB_tools
- KB_widgets
- KB_win_rootkit
- KB_windows
- MEMORY
- SECURITY
- SYMBOLS
- SYMBOLS_p10
- SYMBOLS_p11
- SYMBOLS_p12
- SYMBOLS_p13
- SYMBOLS_p14
- SYMBOLS_p15
- SYMBOLS_p16
- SYMBOLS_p17
- SYMBOLS_p18
- SYMBOLS_p19
- SYMBOLS_p2
- SYMBOLS_p20
- SYMBOLS_p21
- SYMBOLS_p22
- SYMBOLS_p23
- SYMBOLS_p24
- SYMBOLS_p25
- SYMBOLS_p26
- SYMBOLS_p27
- SYMBOLS_p28
- SYMBOLS_p29
- SYMBOLS_p3
- SYMBOLS_p30
- SYMBOLS_p31
- SYMBOLS_p32
- SYMBOLS_p33
- SYMBOLS_p34
- SYMBOLS_p35
- SYMBOLS_p36
- SYMBOLS_p37
- SYMBOLS_p38
- SYMBOLS_p39
- SYMBOLS_p4
- SYMBOLS_p40
- SYMBOLS_p41
- SYMBOLS_p5
- SYMBOLS_p6
- SYMBOLS_p7
- SYMBOLS_p8
- SYMBOLS_p9
Recipes