feat(sdm): inject structural dependency mapping tags across codebase
Adds [C: caller] tags to functions/methods and [M: mutation] / [U: usage] tags to class variables based on cross-module call analysis.
This commit is contained in:
@@ -14,11 +14,12 @@ from src.api_hook_client import ApiHookClient
|
||||
def test_user_request_integration_flow(mock_app: App) -> None:
|
||||
"""
|
||||
|
||||
Verifies that pushing a UserRequestEvent to the event_queue:
|
||||
1. Triggers ai_client.send
|
||||
2. Results in a 'response' event back to the queue
|
||||
3. Eventually updates the UI state (ai_response, ai_status) after processing GUI tasks.
|
||||
ANTI-SIMPLIFICATION: This verifies the full cross-thread boundary.
|
||||
|
||||
Verifies that pushing a UserRequestEvent to the event_queue:
|
||||
1. Triggers ai_client.send
|
||||
2. Results in a 'response' event back to the queue
|
||||
3. Eventually updates the UI state (ai_response, ai_status) after processing GUI tasks.
|
||||
ANTI-SIMPLIFICATION: This verifies the full cross-thread boundary.
|
||||
"""
|
||||
app = mock_app
|
||||
# Mock all ai_client methods called during _handle_request_event
|
||||
@@ -76,7 +77,8 @@ def test_user_request_integration_flow(mock_app: App) -> None:
|
||||
def test_user_request_error_handling(mock_app: App) -> None:
|
||||
"""
|
||||
|
||||
Verifies that if ai_client.send raises an exception, the UI is updated with the error state.
|
||||
|
||||
Verifies that if ai_client.send raises an exception, the UI is updated with the error state.
|
||||
"""
|
||||
app = mock_app
|
||||
with (
|
||||
|
||||
Reference in New Issue
Block a user