Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/abi/screenshot-to-code
/ functions
Functions
861 in github.com/abi/screenshot-to-code
⨍
Functions
861
◇
Types & classes
174
↳
Endpoints
20
Function
test_print_prompt_summary_long_content
()
backend/tests/test_prompt_summary.py:64
Function
test_print_prompt_summary_no_truncate
()
backend/tests/test_prompt_summary.py:114
Function
test_process_tasks_batches_replicate_calls
( monkeypatch: pytest.MonkeyPatch, )
backend/tests/test_batching.py:13
Function
test_promote_temporary_asset_id_returns_permanent_url
( monkeypatch, tmp_path: Path, )
backend/tests/test_uploaded_assets.py:39
Function
test_provider_session_excludes_extract_assets_without_gemini_key
()
backend/tests/test_agent_tools.py:77
Function
test_provider_session_excludes_screenshot_preview_when_chromium_unavailable
( monkeypatch: pytest.MonkeyPatch, )
backend/tests/test_agent_tools.py:111
Function
test_provider_session_includes_extract_assets_with_gemini_key
()
backend/tests/test_agent_tools.py:94
Function
test_provider_session_includes_screenshot_preview_when_chromium_available
( monkeypatch: pytest.MonkeyPatch, )
backend/tests/test_agent_tools.py:133
Function
test_prune_deletes_only_old_reports_and_legacy_artifacts
( logs_path: Path, )
backend/tests/test_prompt_reports.py:188
Function
test_reasoning_summary_part_added_and_done_emits_once
()
backend/tests/test_openai_reasoning_parser.py:38
Function
test_reasoning_summary_part_skipped_after_summary_delta
()
backend/tests/test_openai_reasoning_parser.py:12
Function
test_receive_params_marks_websocket_closed_on_disconnect
()
backend/tests/test_websocket_communicator.py:28
Function
test_record_request_writes_json_report
(logs_path: Path)
backend/tests/test_prompt_reports.py:40
Function
test_record_usage_updates_report_with_cost
(logs_path: Path)
backend/tests/test_prompt_reports.py:59
Function
test_remove_background_accepts_data_urls
( monkeypatch: pytest.MonkeyPatch, )
backend/tests/test_batching.py:78
Function
test_remove_background_batches_calls
( monkeypatch: pytest.MonkeyPatch, )
backend/tests/test_batching.py:40
Function
test_remove_background_converts_localhost_asset_url_to_data_url
( monkeypatch: pytest.MonkeyPatch, tmp_path: Path, )
backend/tests/test_batching.py:109
Function
test_remove_background_uses_version_and_normalizes_output
( monkeypatch: pytest.MonkeyPatch, )
backend/tests/test_image_generation_replicate.py:90
Function
test_rewrites_unversioned_unpkg
()
backend/tests/test_babel_cdn.py:4
Function
test_rewrites_versioned_and_jsdelivr_and_nonmin
()
backend/tests/test_babel_cdn.py:11
Function
test_save_assets_emits_byte_parts
( monkeypatch: pytest.MonkeyPatch, tmp_path: Path )
backend/tests/test_tool_image_outputs.py:340
Function
test_save_assets_promotes_temporary_asset_id
( monkeypatch: pytest.MonkeyPatch, tmp_path: Path, )
backend/tests/test_agent_tool_runtime.py:74
Function
test_save_assets_tool_input_summary_uses_asset_ids
()
backend/tests/test_agent_tools.py:41
Function
test_screenshot_preview_reports_capture_failure
( monkeypatch: pytest.MonkeyPatch, )
backend/tests/test_agent_tool_runtime.py:464
Function
test_screenshot_preview_requires_file_content
()
backend/tests/test_agent_tool_runtime.py:360
Function
test_screenshot_preview_returns_image_part
( monkeypatch: pytest.MonkeyPatch, tmp_path: Path, )
backend/tests/test_agent_tool_runtime.py:377
Function
test_send_message_ignores_already_completed_websocket
()
backend/tests/test_websocket_communicator.py:11
Function
test_snapshot_prompt_falls_back_to_display_text
()
backend/tests/test_update_from_file_snapshot.py:40
Function
test_snapshot_prompt_prefers_full_text_over_display_text
()
backend/tests/test_update_from_file_snapshot.py:19
Method
test_sums_all_fields
(self)
backend/tests/test_token_usage.py:18
Method
test_text_mode_create_generation
Test create generation from text description in text mode.
backend/tests/test_prompts.py:325
Method
test_text_mode_update_with_history
Test update generation with conversation history in text mode.
backend/tests/test_prompts.py:368
Function
test_throw_error_ignores_already_completed_websocket
()
backend/tests/test_websocket_communicator.py:57
Function
test_to_serializable_handles_bytes_and_pydantic_like_objects
()
backend/tests/test_prompt_reports.py:112
Function
test_to_serializable_uses_standard_base64_for_gemini_inline_bytes
()
backend/tests/test_prompt_reports.py:96
Method
test_unknown_model_returns_none
(self)
backend/tests/test_token_usage.py:295
Method
test_update_bootstraps_from_file_state_when_history_is_empty
Update should synthesize a user message from fileState + prompt when history is empty.
backend/tests/test_prompts.py:711
Method
test_update_history_requires_user_message
(self)
backend/tests/test_prompts.py:790
Method
test_update_history_with_image_generation_disabled
(self)
backend/tests/test_prompts.py:299
Method
test_update_requires_history_or_file_state
(self)
backend/tests/test_prompts.py:779
Method
test_update_with_empty_images_arrays
Test that empty images arrays don't break existing functionality.
backend/tests/test_prompts.py:654
Method
test_url_with_http_protocol
Test that existing http protocol is preserved.
backend/tests/test_screenshot.py:14
Method
test_url_with_https_protocol
Test that existing https protocol is preserved.
backend/tests/test_screenshot.py:19
Method
test_url_with_path_and_params
Test URLs with paths and query parameters.
backend/tests/test_screenshot.py:24
Method
test_url_with_whitespace
Test that whitespace is stripped.
backend/tests/test_screenshot.py:30
Method
test_url_without_protocol
Test that URLs without protocol get https:// added.
backend/tests/test_screenshot.py:8
Method
test_video_create_prefers_gemini_minimal_then_3_1_high
Video create always uses two Gemini variants in fixed order.
backend/tests/test_model_selection.py:88
Method
test_video_mode_basic_prompt_creation
Test basic video prompt creation in video mode. For video mode with generation_type="create", we now assemble a regular system+user p
backend/tests/test_prompts.py:435
Function
test_video_update_broadcasts_two_variants
()
backend/tests/test_status_broadcast.py:15
Method
test_video_update_prefers_gemini_minimal_then_3_1_high
Video update always uses the same two Gemini variants as video create.
backend/tests/test_model_selection.py:105
Method
test_zero_tokens_zero_cost
(self)
backend/tests/test_token_usage.py:53
Method
test_zero_total_input_is_zero_percent
(self)
backend/tests/test_token_usage.py:90
Function
toggleExpanded
()
frontend/src/components/evals/InputFileSelector.tsx:67
Function
tracking_generate
(prompt: str, api_key: str)
backend/tests/test_batching.py:21
Function
tracking_remove_bg
(image_url: str, api_token: str)
backend/tests/test_batching.py:48
Method
wrapped
(context: PipelineContext)
backend/routes/generate_code.py:151
Method
write_to_file
(self, filename: str, content: str)
backend/debug/DebugFileWriter.py:22
Function
zoomIn
()
frontend/src/components/ImageLightbox.tsx:79
Function
zoomOut
()
frontend/src/components/ImageLightbox.tsx:83
Function
zoomToDefault
()
frontend/src/components/ImageLightbox.tsx:89
Function
zoomToFit
()
frontend/src/components/ImageLightbox.tsx:87
← previous
801–861 of 861, ranked by callers