Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/idank/explainshell
/ functions
Functions
2,183 in github.com/idank/explainshell
⨍
Functions
2,183
◇
Types & classes
195
↳
Endpoints
100
Method
test_arguments
(self)
tests/test_matcher.py:385
Method
test_assignment_as_first_word
(self)
tests/test_matcher.py:791
Method
test_assignment_with_expansion
(self)
tests/test_matcher.py:780
Method
test_atomic_write_no_tmp_left
After a successful write, no .tmp file should remain.
tests/extraction/test_manifest.py:113
Method
test_azure_requires_api_key
(self)
tests/extraction/llm/test_openai_provider.py:758
Method
test_azure_requires_base_url_or_endpoint
(self)
tests/extraction/llm/test_openai_provider.py:765
Method
test_bad_short_type_raises
(self)
tests/extraction/llm/test_response.py:215
Method
test_bare_angle_brackets_escaped
(self)
tests/test_web_views.py:627
Method
test_bare_basename_rejected
(self)
tests/test_store.py:393
Method
test_bare_codex_raises
Bare 'codex' routes to CodexProvider which rejects it.
tests/extraction/llm/test_codex_provider.py:251
Method
test_bare_codex_rejected
Bare 'codex' without a model name should raise ValueError.
tests/extraction/llm/test_codex_provider.py:141
Method
test_bare_sigil_positional_not_stripped
a positional that IS just the sigil isn't emptied out
tests/extraction/llm/test_response.py:465
Method
test_basic
(self)
tests/extraction/llm/test_response.py:190
Method
test_basic
(self)
tests/extraction/llm/test_text.py:266
Method
test_basic_extraction
(self)
tests/extraction/llm/test_response.py:110
Method
test_batch2_failure_preserves_batch1_writes
If some files fail, successful files must still be in the DB.
tests/test_manager.py:196
Method
test_batch_failure_preserves_prep_stats
When the whole batch fails, FileEntries should have prep stats.
tests/extraction/test_runner.py:204
Method
test_batch_manifest_embedded
batch_manifest dict is included when provided.
tests/test_manager.py:2701
Method
test_batch_mode_dispatches_to_batch_extractor
batch_size set with a BatchExtractor calls run_batch path.
tests/extraction/test_runner.py:583
Method
test_batch_mode_raises_for_non_batch_extractor
Requesting batch mode with a plain Extractor raises TypeError.
tests/extraction/test_runner.py:566
Method
test_batch_mode_raises_for_non_batch_llm_model
LLMExtractor with a non-batch model rejects --batch at dispatch.
tests/extraction/test_runner.py:573
Method
test_batch_size_larger_than_total
All items fit in one batch.
tests/extraction/test_runner.py:1060
Method
test_batch_size_negative_raises
Negative batch_size raises ValueError.
tests/extraction/test_runner.py:560
Method
test_batch_size_one
batch_size=1 gives each file its own batch.
tests/extraction/test_runner.py:1088
Method
test_batch_size_zero_raises
batch_size=0 raises ValueError before dispatch.
tests/extraction/test_runner.py:553
Method
test_batch_takes_precedence_over_jobs
When both batch_size and jobs are set, batch mode wins.
tests/extraction/test_runner.py:793
Method
test_blacklisted_skip
Blacklisted source raises SkippedExtraction(reason_class=BLACKLISTED).
tests/test_manager.py:3009
Method
test_blacklisted_source_skipped
prepare() raises SkippedExtraction for blacklisted source paths.
tests/extraction/llm/test_extractor.py:276
Method
test_blank_lines_skipped
(self)
tests/extraction/llm/test_codex_provider.py:90
Method
test_blockquotes_preserved
(self)
tests/test_web_views.py:638
Method
test_bold_and_italic
(self)
tests/test_web_views.py:622
Method
test_both_lookups_fail_logs_not_in_db
When neither source nor name is in DB, log 'not in DB'.
tests/test_manager.py:2148
Method
test_both_skipped_yields_skipped_outcome
When both extractors skip, outcome is SKIPPED (not FAILED).
tests/test_manager.py:1947
Function
test_broken_same_section_symlink_skipped
(tmp_path: Path)
tests/test_postprocess_ubuntu_archive.py:72
Method
test_buckets_and_stats
(self)
tests/test_manager.py:2773
Method
test_buckets_each_decision_type
(self)
tests/extraction/test_prefilter.py:307
Method
test_cache_respects_entry_limit
( self, cached_store_factory: _CachedStoreFactory )
tests/test_caching_store.py:147
Method
test_cache_stays_within_total_byte_budget
( self, cached_store_factory: _CachedStoreFactory )
tests/test_caching_store.py:132
Method
test_call_llm_invalid_response_preserves_raw
_call_llm propagates raw_response when the LLM returns invalid JSON structure.
tests/extraction/llm/test_extractor.py:249
Method
test_call_uses_azure_endpoint_configuration
( self, mock_openai_cls: MagicMock )
tests/extraction/llm/test_openai_provider.py:695
Method
test_callbacks_forwarded
on_start and on_result callbacks are forwarded through run().
tests/extraction/test_runner.py:774
Method
test_cancel_api_failure_raises
If the cancel API call itself fails, raise ExtractionError.
tests/extraction/llm/test_openai_provider.py:189
Method
test_cancel_wait_measured_from_cancel_time
After cancel, the cancel-wait timeout is measured purely from the cancel time, regardless of continued progress.
tests/extraction/llm/test_openai_provider.py:411
Method
test_cancel_wait_timeout_returns_batch
If cancellation stalls beyond CANCEL_WAIT_TIMEOUT, return batch for partial collection.
tests/extraction/llm/test_openai_provider.py:144
Method
test_case_insensitive_matching
(self)
tests/extraction/llm/test_text.py:337
Method
test_chunk0_invalid_raises_extraction_error
A chunk-0 response missing 'options' raises ExtractionError, not ValueError.
tests/extraction/llm/test_extractor.py:334
Method
test_chunk_info_included
(self)
tests/extraction/llm/test_extractor.py:410
Method
test_classified_defaults
(self)
tests/extraction/test_prefilter.py:359
Method
test_classified_outcomes_recorded
( self, mock_source, mock_collect, mock_make_ext, mock_run, _m
tests/test_manager.py:2808
Method
test_classify_provider_error
(self)
tests/test_manager.py:3023
Method
test_clean_db
(self, store, db_path)
tests/test_db_check.py:45
Method
test_clean_db
(self)
tests/test_manager.py:2459
Method
test_clean_json
(self)
tests/extraction/llm/test_response.py:25
Method
test_clean_option_returned_unchanged
(self)
tests/extraction/test_postprocess.py:305
Method
test_cmd_if_none_match_returns_304
(self)
tests/test_web_views.py:397
Method
test_cmd_unknown_program_is_not_cached
Missing-manpage error responses render a different template and intentionally skip the cache wrapper — a later backfill would otherwis
tests/test_web_views.py:415
Method
test_cmd_view_has_no_cache_headers
(self)
tests/test_web_views.py:456
Method
test_cmd_view_sets_etag_and_cache_control
(self)
tests/test_web_views.py:384
Method
test_codex_with_model
(self)
tests/extraction/llm/test_codex_provider.py:256
Method
test_codex_with_model_passes_flag
codex/o3' should pass --model o3.
tests/extraction/llm/test_codex_provider.py:146
Method
test_codex_with_reasoning_effort
(self)
tests/extraction/llm/test_codex_provider.py:260
Method
test_comment
(self)
tests/test_matcher.py:880
Method
test_completed_during_cancel_wait
If the batch completes while we're waiting for cancel, return it.
tests/extraction/llm/test_openai_provider.py:248
Method
test_comsub
(self)
tests/test_matcher.py:636
Method
test_comsub_as_arg
(self)
tests/test_matcher.py:674
Method
test_comsub_as_first_word
(self)
tests/test_matcher.py:692
Method
test_concurrent_access_is_safe
( self, cached_store_factory: _CachedStoreFactory )
tests/test_caching_store.py:162
Method
test_coverage_too_high
Every option spanning the whole document triggers coverage check.
tests/extraction/test_postprocess.py:364
Method
test_create_is_not_supported
(self)
tests/test_caching_store.py:199
Method
test_creates_parent_directory
FileBatchManifestWriter creates the parent directory if it doesn't exist.
tests/extraction/test_manifest.py:124
Method
test_cross_release_identical_files_not_deduped
Identical files from different releases must both be extracted.
tests/test_manager.py:1088
Method
test_cross_section_identical_files_not_deduped
Identical files in different sections must both be extracted.
tests/test_manager.py:1152
Function
test_cross_section_missing_target_skipped
(tmp_path: Path)
tests/test_postprocess_ubuntu_archive.py:222
Function
test_cross_section_symlink_rewritten
(tmp_path: Path)
tests/test_postprocess_ubuntu_archive.py:57
Function
test_cross_section_to_deleted_section_skipped
(tmp_path: Path)
tests/test_postprocess_ubuntu_archive.py:83
Method
test_dash_flag_not_in_longer_token
-M must not match inside --Macro or re-Make.
tests/extraction/test_postprocess.py:263
Method
test_dash_flag_standalone
(self)
tests/extraction/test_postprocess.py:268
Method
test_dashless_opts_with_arguments
(self)
tests/test_matcher.py:68
Method
test_db_seeded_dedup
(self, _h, _il)
tests/extraction/test_prefilter.py:281
Method
test_db_writes_after_each_batch
Verify on_result callback writes to DB for each successful file.
tests/test_manager.py:112
Method
test_debug_dir_writes_files
( self, mock_sha, mock_synopsis, mock_text, mock_common_synopsis,
tests/extraction/llm/test_extractor.py:141
Method
test_dedup_keeps_longest_span
(self)
tests/extraction/llm/test_response.py:394
Method
test_dedup_scoped_by_release
(self, _h, _il)
tests/extraction/test_prefilter.py:299
Method
test_dedup_step_can_be_skipped
(self)
tests/extraction/test_postprocess.py:330
Method
test_deduplicates
(self)
tests/extraction/llm/test_extractor.py:395
Function
test_deep_path_symlink_skipped
(tmp_path: Path)
tests/test_postprocess_ubuntu_archive.py:97
Method
test_default_distro_falls_back
Default distro is arch (sorts last with reverse), but 'uonly' only exists in ubuntu — fallback should find it.
tests/test_web_views.py:283
Method
test_default_distro_prefers_ubuntu
When multiple distros exist, the default should prefer ubuntu so that commands available only in ubuntu are found without an explicit
tests/test_web_views.py:162
Method
test_delete_failure_does_not_prevent_results
(self, _cls: MagicMock)
tests/extraction/llm/test_openai_provider.py:827
Method
test_description_only_first_paragraph
(self)
tests/extraction/llm/test_text.py:226
Method
test_diff_db_debug_threads_through
--debug is forwarded to _run_diff_db.
tests/test_manager.py:1732
Method
test_diff_db_invalid_mode
Invalid mode is rejected.
tests/test_manager.py:1765
Method
test_diff_db_success
Basic diff db invocation succeeds.
tests/test_manager.py:1697
Method
test_diff_extractors_invalid_mode_in_spec
Invalid mode inside A..B spec is rejected.
tests/test_manager.py:1817
Method
test_diff_extractors_invalid_spec_no_dots
Spec without '..' is rejected.
tests/test_manager.py:1806
Method
test_diff_extractors_success
Basic diff extractors invocation succeeds.
tests/test_manager.py:1787
Method
test_different_distro
(self)
tests/test_store.py:205
Method
test_different_options_kept
(self)
tests/extraction/llm/test_response.py:371
Method
test_direct_fatal_extraction_error_propagates
An extractor-raised FatalExtractionError is not swallowed.
tests/extraction/test_runner.py:739
Method
test_disjoint_overlap_not_merged
Overlapping but non-subset flags: neither is removed.
tests/extraction/test_postprocess.py:222
← previous
next →
1,601–1,700 of 2,183, ranked by callers