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_no_non_breaking_spaces
mandoc emits   between flags and args; these should be regular spaces.
tests/extraction/llm/test_text.py:82
Method
test_no_options
(self)
tests/test_matcher.py:34
Method
test_no_options
(self)
tests/extraction/test_postprocess.py:238
Method
test_no_output_file_still_cleans_input
(self, _cls: MagicMock)
tests/extraction/llm/test_openai_provider.py:813
Method
test_no_preamble_sections
(self)
tests/extraction/llm/test_text.py:254
Method
test_no_prefix_unchanged
(self)
tests/extraction/llm/test_extractor.py:391
Method
test_no_reasoning_effort_without_third_segment
codex/o3' should not pass -c model_reasoning_effort.
tests/extraction/llm/test_codex_provider.py:183
Method
test_no_results_raises
Filtering by a distro that has no matching manpage should raise.
tests/test_store.py:261
Method
test_no_stall_completes_normally
When progress is steady, the batch completes without cancellation.
tests/extraction/llm/test_openai_provider.py:293
Method
test_no_synopsis
(self)
tests/test_matcher.py:922
Method
test_no_turn_completed
(self)
tests/extraction/llm/test_codex_provider.py:72
Method
test_non_agent_message_ignored
(self)
tests/extraction/llm/test_codex_provider.py:121
Function
test_non_kept_sections_ignored
(tmp_path: Path)
tests/test_postprocess_ubuntu_archive.py:137
Method
test_non_retryable_error_fails_fast
Non-retryable exceptions (e.g. auth errors) should raise immediately without any retries or backoff.
tests/extraction/llm/test_openai_provider.py:609
Method
test_none_fields_excluded
Fields set to None are omitted from the JSON (exclude_none).
tests/test_manager.py:2682
Method
test_nonexistent_db
Read-only commands fail cleanly when DB file doesn't exist.
tests/test_manager.py:2182
Method
test_nonexistent_db
(self)
tests/test_manager.py:2484
Method
test_nonexistent_section_raises
Requesting a section that doesn't exist should raise ProgramDoesNotExist.
tests/test_store.py:107
Method
test_nonzero_exit_no_output_raises_fatal
Exit 1 with no JSONL response content → FatalExtractionError.
tests/extraction/llm/test_codex_provider.py:195
Method
test_nonzero_exit_raises
(self, mock_run, _mock_isfile)
tests/extraction/llm/test_text.py:50
Method
test_nonzero_exit_with_output_raises_runtime
Exit 1 but JSONL has response content → RuntimeError.
tests/extraction/llm/test_codex_provider.py:207
Method
test_normal_extraction_passes
Typical well-behaved extraction: each option spans a few lines.
tests/extraction/test_postprocess.py:355
Method
test_normal_preamble
(self)
tests/extraction/llm/test_text.py:216
Method
test_normal_run_writes_to_store
( self, mock_source, mock_collect, mock_make_ext, mock_run, _m
tests/test_manager.py:463
Method
test_not_found_returns_none
(self, store)
tests/test_store.py:329
Method
test_null_batch_id_for_submit_failure
(self)
tests/extraction/test_manifest.py:97
Method
test_null_has_argument_positional_recovered
Real case: LLM returns has_argument=null for positional args.
tests/extraction/llm/test_response.py:488
Method
test_null_usage_field
(self)
tests/extraction/llm/test_codex_provider.py:107
Method
test_on_result_called_for_all_outcomes
(self)
tests/extraction/test_runner.py:434
Method
test_only_prefixed_positional
a page whose only positional is prefixed: prefix token matches, non-prefix token goes unknown instead of raising on the empty pool
tests/test_matcher.py:167
Method
test_option_not_dict_raises
(self)
tests/extraction/llm/test_response.py:67
Method
test_options_not_list_raises
(self)
tests/extraction/llm/test_response.py:63
Method
test_ordering_newest_first
(self, store)
tests/test_store.py:427
Method
test_orphaned_mapping
Insert a mapping pointing to a non-existent manpage.
tests/test_db_check.py:62
Method
test_oversized_entries_are_not_cached
( self, cached_store_factory: _CachedStoreFactory )
tests/test_caching_store.py:119
Method
test_oversized_name_section_is_truncated
(self)
tests/extraction/llm/test_text.py:235
Method
test_oversized_preamble_does_not_explode_chunks
A manpage whose NAME section exceeds CHUNK_SIZE_CHARS should not produce one chunk per line (the bwbasic bug).
tests/extraction/llm/test_text.py:192
Method
test_oversized_section_with_paragraphs_splits
(self)
tests/extraction/llm/test_text.py:144
Method
test_overwrite_bypasses_db_hash_dedup
--overwrite must re-extract even when the hash is already in the DB.
tests/test_manager.py:1016
Method
test_overwrite_drops_db_seed
(self, _h, _il)
tests/extraction/test_prefilter.py:291
Method
test_overwrite_skips_already_stored_branch
(self, _h, _il)
tests/extraction/test_prefilter.py:257
Method
test_parallel_batch_correct_results
With jobs=2 and multiple batches, all files are extracted correctly.
tests/extraction/test_runner.py:816
Method
test_parallel_batch_failure_isolation
With jobs=2, a failing batch produces FAILED entries while other batches succeed.
tests/extraction/test_runner.py:855
Method
test_parallel_callbacks_on_main_thread
on_result is always called from the main thread, even with jobs > 1.
tests/extraction/test_runner.py:900
Method
test_parallel_direct_fatal_extraction_error_propagates
Parallel mode also propagates extractor-raised FatalExtractionError.
tests/extraction/test_runner.py:755
Method
test_parallel_make_poll_client_failure
make_poll_client failure in a worker produces FAILED entries for that batch; other batches are unaffected.
tests/extraction/test_runner.py:938
Method
test_parallel_mode
jobs > 1 runs in parallel.
tests/extraction/test_runner.py:612
Method
test_parallel_mode_submits_only_jobs_initially
The parallel runner keeps only `jobs` tasks submitted at first.
tests/extraction/test_runner.py:623
Method
test_parallel_unexpected_exception_aborts_run
Unexpected extractor exceptions are treated as fatal.
tests/extraction/test_runner.py:697
Method
test_partial_batch_succeeds_complete_files
When a batch returns partial results, files whose chunks are all present succeed while files with missing chunks fail.
tests/extraction/test_runner.py:256
Method
test_partial_failure_preserves_successful_stats
When one side fails, the successful side's stats are still counted.
tests/test_manager.py:1840
Method
test_passthrough_valid_types
(self)
tests/extraction/llm/test_response.py:431
Method
test_pipe
(self)
tests/test_matcher.py:569
Method
test_pipeline_anchors_to_fallback_distro
Default picks ubuntu. In 'aonly | uonly', the first command falls back to arch, anchoring there — so 'uonly' (ubuntu-only) should be u
tests/test_web_views.py:310
Method
test_placeholder_styling_not_stripped
non-allowlisted leading chars like '<FILE>' stay untouched
tests/extraction/llm/test_response.py:458
Method
test_poll_error_backoff_capped
Backoff should be capped at MAX_ERROR_BACKOFF.
tests/extraction/llm/test_openai_provider.py:500
Method
test_poll_errors_exhaust_budget_raises
After MAX_POLL_ERRORS consecutive failures, raise ExtractionError.
tests/extraction/llm/test_openai_provider.py:586
Method
test_poll_errors_reset_on_success
A successful poll should reset the consecutive error counter.
tests/extraction/llm/test_openai_provider.py:541
Method
test_poll_errors_use_exponential_backoff
Poll errors should back off exponentially up to MAX_ERROR_BACKOFF.
tests/extraction/llm/test_openai_provider.py:459
Method
test_positional_always_kept
(self)
tests/extraction/llm/test_response.py:379
Method
test_positional_arg
(self)
tests/extraction/llm/test_response.py:232
Method
test_positional_name_match
a word that exactly matches a positional key uses that key's text
tests/test_matcher.py:100
Method
test_positional_on_flagged_option
Options with short/long flags should not have positional set.
tests/test_db_check.py:105
Method
test_positional_on_positional_ok
Positional operands (no flags) with positional set should not warn.
tests/test_db_check.py:131
Method
test_positional_with_embedded_sigil
sigil embedded in the positional name is split into prefix
tests/extraction/llm/test_response.py:257
Method
test_positional_with_prefix
(self)
tests/extraction/llm/test_response.py:244
Method
test_positionals_skipped
Positional-only options (no flags) are never deduped.
tests/extraction/test_postprocess.py:230
Method
test_posix_section
(self)
tests/test_web_views.py:584
Method
test_preamble_on_later_chunks
(self)
tests/extraction/llm/test_text.py:179
Method
test_prefix_cleared_when_positional_cleared
clearing positional (flags present) also drops the prefix
tests/extraction/test_postprocess.py:293
Method
test_prefix_cleared_when_positional_cleared
positional cleared due to flags also drops the prefix
tests/extraction/llm/test_response.py:313
Method
test_prefix_cleared_without_positional
(self)
tests/extraction/test_postprocess.py:289
Method
test_prefix_cleared_without_positional
(self)
tests/extraction/llm/test_response.py:307
Method
test_prefix_filters_by_distro_release
(self, store)
tests/test_store.py:360
Method
test_prefix_filters_by_section
(self, store)
tests/test_store.py:370
Method
test_prefix_kept_for_positional
(self)
tests/extraction/test_postprocess.py:285
Method
test_prefix_kept_for_positional
(self)
tests/extraction/llm/test_response.py:301
Method
test_prefix_outside_allowlist_dropped
(self)
tests/extraction/test_postprocess.py:300
Method
test_prefix_outside_allowlist_dropped
(self)
tests/extraction/llm/test_response.py:321
Method
test_prefixed_positional_first
a prefixed token in first position doesn't consume the ordered pool
tests/test_matcher.py:123
Method
test_prefixed_positional_literal_name
a word spelling a prefixed positional's name no longer exact-name matches it; it falls to ordered consumption (deliberate behavior delta)
tests/test_matcher.py:156
Method
test_prefixed_positional_out_of_order
a prefixed token claims its positional regardless of position, and non-prefixed tokens skip the prefixed positional in ordered consumption
tests/test_matcher.py:110
Method
test_prefixed_positional_reuse
multiple prefixed tokens may claim the same positional (adjacent matches with the same text get merged)
tests/test_matcher.py:134
Method
test_prefixed_token_no_declared_prefix
a token bearing a sigil no positional declares falls through to ordered consumption
tests/test_matcher.py:145
Method
test_preserves_alias_mappings_with_spaces
Reconciliation must not delete alias mappings for manpages whose name contains a space (e.g. 'pg_autoctl activate').
tests/test_store.py:578
Method
test_preserves_empty_lines
(self)
tests/extraction/llm/test_text.py:281
Method
test_primary_name_preferred_over_alias
A manpage looked up by its primary name (score 10) should rank above one where the lookup name is only an alias (score 1).
tests/test_store.py:43
Method
test_procsub
(self)
tests/test_matcher.py:704
Method
test_program_default_falls_back
The /explain/<program> route should fall back with default distro.
tests/test_web_views.py:321
Method
test_program_url_distro_no_fallback
The /explain/<distro>/<release>/<program> route should NOT fall back.
tests/test_web_views.py:330
Method
test_program_view_has_no_cache_headers
(self)
tests/test_web_views.py:450
Method
test_progress_does_not_extend_walltime
Wall-time limit triggers cancel even when progress is being made.
tests/extraction/llm/test_openai_provider.py:101
Method
test_prompt_includes_system_prompt
(self)
tests/extraction/llm/test_codex_provider.py:218
Method
test_quoted_dash_arg_double_quotes
same as above but with double quotes
tests/test_matcher.py:277
Method
test_quoted_dash_arg_is_not_split
a quoted word like '-foo' should be treated as an argument to the previous option, not split as short option flags
tests/test_matcher.py:267
Method
test_quoted_dash_arg_with_spaces
a quoted word with spaces and a leading dash is an argument
tests/test_matcher.py:286
Function
test_real_llm_echo_manpage
(model: str, env_var: str | None)
tests/extraction/llm/test_extractor.py:446
Method
test_real_manpage_filters
Smoke test on a real manpage to verify sections are removed.
tests/extraction/llm/test_text.py:366
Method
test_reason_embedded
reason string is included in the JSON when provided.
tests/test_manager.py:2692
Method
test_reason_gate_skipped_for_dry_run
(self, mock_collect)
tests/test_manager.py:417
← previous
next →
1,901–2,000 of 2,183, ranked by callers