MCPcopy Create free account

hub / github.com/idank/explainshell / functions

Functions2,183 in github.com/idank/explainshell

Methodtest_no_non_breaking_spaces
mandoc emits   between flags and args; these should be regular spaces.
tests/extraction/llm/test_text.py:82
Methodtest_no_options
(self)
tests/test_matcher.py:34
Methodtest_no_options
(self)
tests/extraction/test_postprocess.py:238
Methodtest_no_output_file_still_cleans_input
(self, _cls: MagicMock)
tests/extraction/llm/test_openai_provider.py:813
Methodtest_no_preamble_sections
(self)
tests/extraction/llm/test_text.py:254
Methodtest_no_prefix_unchanged
(self)
tests/extraction/llm/test_extractor.py:391
Methodtest_no_reasoning_effort_without_third_segment
codex/o3' should not pass -c model_reasoning_effort.
tests/extraction/llm/test_codex_provider.py:183
Methodtest_no_results_raises
Filtering by a distro that has no matching manpage should raise.
tests/test_store.py:261
Methodtest_no_stall_completes_normally
When progress is steady, the batch completes without cancellation.
tests/extraction/llm/test_openai_provider.py:293
Methodtest_no_synopsis
(self)
tests/test_matcher.py:922
Methodtest_no_turn_completed
(self)
tests/extraction/llm/test_codex_provider.py:72
Methodtest_non_agent_message_ignored
(self)
tests/extraction/llm/test_codex_provider.py:121
Functiontest_non_kept_sections_ignored
(tmp_path: Path)
tests/test_postprocess_ubuntu_archive.py:137
Methodtest_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
Methodtest_none_fields_excluded
Fields set to None are omitted from the JSON (exclude_none).
tests/test_manager.py:2682
Methodtest_nonexistent_db
Read-only commands fail cleanly when DB file doesn't exist.
tests/test_manager.py:2182
Methodtest_nonexistent_db
(self)
tests/test_manager.py:2484
Methodtest_nonexistent_section_raises
Requesting a section that doesn't exist should raise ProgramDoesNotExist.
tests/test_store.py:107
Methodtest_nonzero_exit_no_output_raises_fatal
Exit 1 with no JSONL response content → FatalExtractionError.
tests/extraction/llm/test_codex_provider.py:195
Methodtest_nonzero_exit_raises
(self, mock_run, _mock_isfile)
tests/extraction/llm/test_text.py:50
Methodtest_nonzero_exit_with_output_raises_runtime
Exit 1 but JSONL has response content → RuntimeError.
tests/extraction/llm/test_codex_provider.py:207
Methodtest_normal_extraction_passes
Typical well-behaved extraction: each option spans a few lines.
tests/extraction/test_postprocess.py:355
Methodtest_normal_preamble
(self)
tests/extraction/llm/test_text.py:216
Methodtest_normal_run_writes_to_store
( self, mock_source, mock_collect, mock_make_ext, mock_run, _m
tests/test_manager.py:463
Methodtest_not_found_returns_none
(self, store)
tests/test_store.py:329
Methodtest_null_batch_id_for_submit_failure
(self)
tests/extraction/test_manifest.py:97
Methodtest_null_has_argument_positional_recovered
Real case: LLM returns has_argument=null for positional args.
tests/extraction/llm/test_response.py:488
Methodtest_null_usage_field
(self)
tests/extraction/llm/test_codex_provider.py:107
Methodtest_on_result_called_for_all_outcomes
(self)
tests/extraction/test_runner.py:434
Methodtest_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
Methodtest_option_not_dict_raises
(self)
tests/extraction/llm/test_response.py:67
Methodtest_options_not_list_raises
(self)
tests/extraction/llm/test_response.py:63
Methodtest_ordering_newest_first
(self, store)
tests/test_store.py:427
Methodtest_orphaned_mapping
Insert a mapping pointing to a non-existent manpage.
tests/test_db_check.py:62
Methodtest_oversized_entries_are_not_cached
( self, cached_store_factory: _CachedStoreFactory )
tests/test_caching_store.py:119
Methodtest_oversized_name_section_is_truncated
(self)
tests/extraction/llm/test_text.py:235
Methodtest_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
Methodtest_oversized_section_with_paragraphs_splits
(self)
tests/extraction/llm/test_text.py:144
Methodtest_overwrite_bypasses_db_hash_dedup
--overwrite must re-extract even when the hash is already in the DB.
tests/test_manager.py:1016
Methodtest_overwrite_drops_db_seed
(self, _h, _il)
tests/extraction/test_prefilter.py:291
Methodtest_overwrite_skips_already_stored_branch
(self, _h, _il)
tests/extraction/test_prefilter.py:257
Methodtest_parallel_batch_correct_results
With jobs=2 and multiple batches, all files are extracted correctly.
tests/extraction/test_runner.py:816
Methodtest_parallel_batch_failure_isolation
With jobs=2, a failing batch produces FAILED entries while other batches succeed.
tests/extraction/test_runner.py:855
Methodtest_parallel_callbacks_on_main_thread
on_result is always called from the main thread, even with jobs > 1.
tests/extraction/test_runner.py:900
Methodtest_parallel_direct_fatal_extraction_error_propagates
Parallel mode also propagates extractor-raised FatalExtractionError.
tests/extraction/test_runner.py:755
Methodtest_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
Methodtest_parallel_mode
jobs > 1 runs in parallel.
tests/extraction/test_runner.py:612
Methodtest_parallel_mode_submits_only_jobs_initially
The parallel runner keeps only `jobs` tasks submitted at first.
tests/extraction/test_runner.py:623
Methodtest_parallel_unexpected_exception_aborts_run
Unexpected extractor exceptions are treated as fatal.
tests/extraction/test_runner.py:697
Methodtest_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
Methodtest_partial_failure_preserves_successful_stats
When one side fails, the successful side's stats are still counted.
tests/test_manager.py:1840
Methodtest_passthrough_valid_types
(self)
tests/extraction/llm/test_response.py:431
Methodtest_pipe
(self)
tests/test_matcher.py:569
Methodtest_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
Methodtest_placeholder_styling_not_stripped
non-allowlisted leading chars like '<FILE>' stay untouched
tests/extraction/llm/test_response.py:458
Methodtest_poll_error_backoff_capped
Backoff should be capped at MAX_ERROR_BACKOFF.
tests/extraction/llm/test_openai_provider.py:500
Methodtest_poll_errors_exhaust_budget_raises
After MAX_POLL_ERRORS consecutive failures, raise ExtractionError.
tests/extraction/llm/test_openai_provider.py:586
Methodtest_poll_errors_reset_on_success
A successful poll should reset the consecutive error counter.
tests/extraction/llm/test_openai_provider.py:541
Methodtest_poll_errors_use_exponential_backoff
Poll errors should back off exponentially up to MAX_ERROR_BACKOFF.
tests/extraction/llm/test_openai_provider.py:459
Methodtest_positional_always_kept
(self)
tests/extraction/llm/test_response.py:379
Methodtest_positional_arg
(self)
tests/extraction/llm/test_response.py:232
Methodtest_positional_name_match
a word that exactly matches a positional key uses that key's text
tests/test_matcher.py:100
Methodtest_positional_on_flagged_option
Options with short/long flags should not have positional set.
tests/test_db_check.py:105
Methodtest_positional_on_positional_ok
Positional operands (no flags) with positional set should not warn.
tests/test_db_check.py:131
Methodtest_positional_with_embedded_sigil
sigil embedded in the positional name is split into prefix
tests/extraction/llm/test_response.py:257
Methodtest_positional_with_prefix
(self)
tests/extraction/llm/test_response.py:244
Methodtest_positionals_skipped
Positional-only options (no flags) are never deduped.
tests/extraction/test_postprocess.py:230
Methodtest_posix_section
(self)
tests/test_web_views.py:584
Methodtest_preamble_on_later_chunks
(self)
tests/extraction/llm/test_text.py:179
Methodtest_prefix_cleared_when_positional_cleared
clearing positional (flags present) also drops the prefix
tests/extraction/test_postprocess.py:293
Methodtest_prefix_cleared_when_positional_cleared
positional cleared due to flags also drops the prefix
tests/extraction/llm/test_response.py:313
Methodtest_prefix_cleared_without_positional
(self)
tests/extraction/test_postprocess.py:289
Methodtest_prefix_cleared_without_positional
(self)
tests/extraction/llm/test_response.py:307
Methodtest_prefix_filters_by_distro_release
(self, store)
tests/test_store.py:360
Methodtest_prefix_filters_by_section
(self, store)
tests/test_store.py:370
Methodtest_prefix_kept_for_positional
(self)
tests/extraction/test_postprocess.py:285
Methodtest_prefix_kept_for_positional
(self)
tests/extraction/llm/test_response.py:301
Methodtest_prefix_outside_allowlist_dropped
(self)
tests/extraction/test_postprocess.py:300
Methodtest_prefix_outside_allowlist_dropped
(self)
tests/extraction/llm/test_response.py:321
Methodtest_prefixed_positional_first
a prefixed token in first position doesn't consume the ordered pool
tests/test_matcher.py:123
Methodtest_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
Methodtest_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
Methodtest_prefixed_positional_reuse
multiple prefixed tokens may claim the same positional (adjacent matches with the same text get merged)
tests/test_matcher.py:134
Methodtest_prefixed_token_no_declared_prefix
a token bearing a sigil no positional declares falls through to ordered consumption
tests/test_matcher.py:145
Methodtest_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
Methodtest_preserves_empty_lines
(self)
tests/extraction/llm/test_text.py:281
Methodtest_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
Methodtest_procsub
(self)
tests/test_matcher.py:704
Methodtest_program_default_falls_back
The /explain/<program> route should fall back with default distro.
tests/test_web_views.py:321
Methodtest_program_url_distro_no_fallback
The /explain/<distro>/<release>/<program> route should NOT fall back.
tests/test_web_views.py:330
Methodtest_program_view_has_no_cache_headers
(self)
tests/test_web_views.py:450
Methodtest_progress_does_not_extend_walltime
Wall-time limit triggers cancel even when progress is being made.
tests/extraction/llm/test_openai_provider.py:101
Methodtest_prompt_includes_system_prompt
(self)
tests/extraction/llm/test_codex_provider.py:218
Methodtest_quoted_dash_arg_double_quotes
same as above but with double quotes
tests/test_matcher.py:277
Methodtest_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
Methodtest_quoted_dash_arg_with_spaces
a quoted word with spaces and a leading dash is an argument
tests/test_matcher.py:286
Functiontest_real_llm_echo_manpage
(model: str, env_var: str | None)
tests/extraction/llm/test_extractor.py:446
Methodtest_real_manpage_filters
Smoke test on a real manpage to verify sections are removed.
tests/extraction/llm/test_text.py:366
Methodtest_reason_embedded
reason string is included in the JSON when provided.
tests/test_manager.py:2692
Methodtest_reason_gate_skipped_for_dry_run
(self, mock_collect)
tests/test_manager.py:417
← previousnext →1,901–2,000 of 2,183, ranked by callers