Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/mwmbl/mwmbl
/ functions
Functions
929 in github.com/mwmbl/mwmbl
⨍
Functions
929
◇
Types & classes
208
↳
Endpoints
48
Function
test_delete_other_users_key_returns_404
Attempting to delete another user's key returns 404 (not 403) to avoid leaking existence.
test/test_search_api_key.py:284
Function
test_document_backward_compat_old_six_element_tuple
()
test/test_indexer.py:151
Function
test_document_round_trip_with_new_fields
()
test/test_indexer.py:144
Function
test_domain_score_known_domain
paulgraham.com is in the HN top domains list; domain_score should be > 0.
test/test_rust_features.py:165
Method
test_domain_scoring_and_url_management
Test domain scoring and URL management in Redis
test/test_crawl_functional.py:302
Function
test_done_reports_pages_indexed
Results are indexed at the end and the count is reported in 'done'.
test/test_super_search.py:351
Function
test_edge_case_empty_and_malformed_urls
Test edge cases with empty strings and malformed URLs in the list
test/test_large_url_list.py:156
Method
test_error_recovery_and_resilience
Test error recovery and system resilience
test/test_crawl_functional.py:388
Function
test_feature_names_match
Rust and Python feature names should be in the same order.
test/test_rust_features.py:135
Function
test_feature_parity
Rust and Python feature vectors should agree to within ATOL.
test/test_rust_features.py:110
Function
test_fetch_blocks_internal_url_without_request
(monkeypatch)
test/test_ssrf.py:101
Function
test_fetch_blocks_redirect_to_internal
(monkeypatch)
test/test_ssrf.py:110
Function
test_fetch_returns_content_for_public_url
(monkeypatch)
test/test_ssrf.py:124
Function
test_final_results_are_mmr_diversified
The final ranking applies MMR diversity (as standard search does): a second same-domain result is demoted below a lower-scored fresh-domain result
test/test_super_search.py:307
Function
test_final_results_event_emitted
A 'results' event with the full ranked list is emitted before 'done'.
test/test_super_search.py:274
Method
test_fit_returns_self
(self)
test/test_rust_pipeline.py:112
Function
test_followed_link_with_title_and_no_extract_kept
A followed link with a genuine crawled title but an empty extract is kept.
test/test_super_search.py:584
Function
test_followed_link_without_title_excluded
A followed link whose crawl yields no real title is a pseudo-result (its only title would be URL-derived) and must not enter the final ranking,
test/test_super_search.py:551
Function
test_format_result
()
test/test_format.py:8
Method
test_from_model_path
(self)
test/test_rust_pipeline.py:195
Function
test_get_first_paragraph_collapses_whitespace_and_nested_tags
()
test/test_retrieve_extract.py:50
Function
test_get_first_paragraph_none_when_no_body_prose
()
test/test_retrieve_extract.py:57
Function
test_get_first_paragraph_returns_first_substantive
()
test/test_retrieve_extract.py:33
Function
test_get_first_paragraph_skips_link_heavy
()
test/test_retrieve_extract.py:42
Function
test_get_meta_description
()
test/test_retrieve_extract.py:22
Function
test_get_meta_description_absent
()
test/test_retrieve_extract.py:29
Function
test_get_page_data_many_docs_all_fit
()
test/test_indexer.py:70
Function
test_get_page_data_many_docs_subset_fit
()
test/test_indexer.py:96
Function
test_get_page_data_single_doc
()
test/test_indexer.py:50
Function
test_get_user_vote_history
Test getting user's voting history
test/test_voting_api.py:380
Function
test_get_vote_counts_multiple_urls
Test getting vote counts for multiple URLs
test/test_voting_api.py:259
Function
test_get_vote_counts_no_urls
Test getting vote counts without providing URLs
test/test_voting_api.py:303
Function
test_get_vote_counts_single_url
Test getting vote counts for a single URL
test/test_voting_api.py:218
Function
test_github_returns_documents
(httpx_mock)
test/test_super_search_sources.py:54
Function
test_github_swallows_errors
(httpx_mock)
test/test_super_search_sources.py:69
Function
test_gutenberg_scrapes_and_resolves_relative_url
(httpx_mock)
test/test_super_search_recipes.py:145
Function
test_hagezi_blacklist_provider_invalid_type
Test HaGeZiBlacklistProvider rejects invalid list types.
test/test_blacklist_providers.py:56
Function
test_hagezi_blacklist_provider_success
Test HaGeZiBlacklistProvider with successful HTTP response.
test/test_blacklist_providers.py:29
Function
test_heap_equal_score_does_not_enter_full_heap
A doc whose score equals the heap minimum must NOT be promoted — the check is strictly greater-than, so ties don't displace existing entries.
test/test_super_search.py:243
Function
test_heap_replacement_promotes_better_late_doc
When the heap is full, a later doc with a higher score replaces the minimum and is still promoted — the heap min-replacement path must work.
test/test_super_search.py:208
Function
test_hn_returns_documents
(httpx_mock)
test/test_super_search_sources.py:28
Function
test_hn_swallows_http_errors
(httpx_mock)
test/test_super_search_sources.py:43
Function
test_hostname_resolving_to_private_ip_is_unsafe
(monkeypatch)
test/test_ssrf.py:47
Function
test_hostname_resolving_to_public_ip_is_safe
(monkeypatch)
test/test_ssrf.py:55
Function
test_http_error_returns_empty
(httpx_mock)
test/test_super_search_recipes.py:196
Function
test_idempotencyWithSameScoreCompletions
(mocker)
test/test_completer.py:68
Function
test_increment_monthly_returns_increasing_counts
()
test/test_search_api_key.py:726
Function
test_index_results_against_query
()
test/test_index_batches.py:96
Function
test_index_results_against_query_keeps_title_only_documents
()
test/test_index_batches.py:130
Method
test_indexing_workflow
Test the indexing workflow with fake Redis
test/test_crawl_functional.py:176
Method
test_instantiation
(self)
test/test_rust_pipeline.py:76
Method
test_instantiation_custom_params
(self)
test/test_rust_pipeline.py:83
Function
test_integration_with_blacklist_module
Test integration with the main blacklist module.
test/test_blacklist_providers.py:91
Method
test_integration_workflow
Test the complete integration workflow
test/test_crawl_functional.py:339
Function
test_internal_ip_literals_are_unsafe
(host)
test/test_ssrf.py:31
Function
test_large_url_list_post_method
Test handling a large number of URLs (more than 160) that would fail with GET
test/test_large_url_list.py:38
Function
test_link_following_adds_followed_docs
A promoted page is crawled, its outbound links followed, and the followed docs appear in the final ranking — exercises page_fetched / link_followe
test/test_super_search.py:451
Function
test_list_api_keys_hides_raw_key
(api_client, access_token, search_api_key)
test/test_search_api_key.py:234
Function
test_list_api_keys_shows_all_scopes
(api_client, access_token, search_api_key, crawl_api_key)
test/test_search_api_key.py:251
Function
test_list_api_keys_unauthenticated
(api_client)
test/test_search_api_key.py:263
Method
test_load_nonexistent_path_raises
(self)
test/test_rust_pipeline.py:213
Function
test_load_recipes_skips_malformed
A malformed recipe is logged and skipped, not raised — so one bad file can't crash the whole app at import time. Valid recipes still load.
test/test_super_search_recipes.py:63
Function
test_localhost_resolving_to_loopback_is_unsafe
(monkeypatch)
test/test_ssrf.py:39
Function
test_login_email_and_username_return_same_user
(client, verified_user)
test/test_auth.py:93
Function
test_login_nonexistent_user
(client, db)
test/test_auth.py:73
Function
test_login_unverified_email_rejected
(client, unverified_user)
test/test_auth.py:83
Function
test_login_with_email
(client, verified_user)
test/test_auth.py:50
Function
test_login_with_username
(client, verified_user)
test/test_auth.py:37
Function
test_login_wrong_password
(client, verified_user)
test/test_auth.py:63
Function
test_merge_user_ids_basic
()
test/test_index_batches.py:159
Function
test_merge_user_ids_both_none
()
test/test_index_batches.py:172
Function
test_merge_user_ids_capped_at_max
()
test/test_index_batches.py:168
Function
test_merge_user_ids_deduplication_moves_to_end
()
test/test_index_batches.py:163
Function
test_merge_user_ids_empty_existing
()
test/test_index_batches.py:155
Function
test_mmr_caps_work_to_window_and_keeps_tail
()
test/test_mmr_rank.py:48
Function
test_mmr_demotes_same_domain_below_fresh_domain
()
test/test_mmr_rank.py:20
Function
test_mmr_keeps_all_documents
()
test/test_mmr_rank.py:9
Function
test_mmr_preserves_order_without_duplicates
()
test/test_mmr_rank.py:33
Function
test_mmr_short_lists_are_unchanged
()
test/test_mmr_rank.py:43
Function
test_mmrranker_delegates_complete_and_raw_results
()
test/test_mmr_rank.py:93
Function
test_mmrranker_reranks_wrapped_search_output
()
test/test_mmr_rank.py:80
Function
test_multiple_submissions_same_user
Test that a user can submit multiple WASM files
test/test_evaluation_api.py:239
Method
test_ndcg_above_random
After training, NDCG on training data should be above 0.5 (better than random).
test/test_rust_pipeline.py:242
Function
test_noCompletions
(mocker)
test/test_completer.py:40
Function
test_no_duplicate_consecutive_results_frames
The dedup guard must never emit two consecutive identical `results` frames.
test/test_super_search.py:493
Function
test_no_nan_in_features
No feature should be NaN for any test case.
test/test_rust_features.py:154
Function
test_num_features
NUM_FEATURES constant should be 50.
test/test_rust_features.py:149
Function
test_openapi_docs_page
Test that the unified OpenAPI docs page loads without errors
test/test_openapi.py:79
Function
test_openapi_spec_generation
Test that the unified OpenAPI spec can be generated without errors
test/test_openapi.py:41
Function
test_order_result
()
test/test_rank.py:5
Function
test_parse_url
()
test/test_utils.py:7
Function
test_pipeline_deadline_times_out
When the pipeline overruns the deadline, the stream still terminates with a `done` event whose reason is `timed_out`.
test/test_super_search.py:427
Function
test_post_results_body_key_deprecated_still_works
Body api_key field is deprecated but must still work for backward compatibility.
test/test_search_api_key.py:454
Function
test_post_results_future_last_crawled_rejected
(api_client, crawl_api_key)
test/test_search_api_key.py:496
Function
test_post_results_header_key_accepted
(api_client, crawl_api_key)
test/test_search_api_key.py:440
Function
test_post_results_header_takes_precedence_over_body
When both header and body key are present, the header key is used.
test/test_search_api_key.py:480
Function
test_post_results_no_key_returns_401
(api_client)
test/test_search_api_key.py:430
Function
test_post_results_search_scoped_key_rejected
A search-scoped key must not grant access to the crawler results endpoint.
test/test_search_api_key.py:468
Function
test_post_results_sets_user_id
(api_client, crawl_api_key, verified_user)
test/test_search_api_key.py:526
Function
test_post_results_uses_submitted_last_crawled
(api_client, crawl_api_key)
test/test_search_api_key.py:508
← previous
next →
701–800 of 929, ranked by callers