Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HKUDS/Vibe-Trading
/ functions
Functions
26,887 in github.com/HKUDS/Vibe-Trading
⨍
Functions
26,887
◇
Types & classes
2,943
↳
Endpoints
204
Function
test_invalid_read_entries_skipped_safely
(live_runtime: Path)
agent/tests/test_runtime_flatten.py:264
Function
test_invalid_recorded_factor_is_not_silently_replaced
(tmp_path: Path, factor)
agent/tests/test_validation_cli_settings.py:185
Method
test_invalid_regime_raises_value_error
(self)
agent/tests/test_strategy_discovery_models.py:91
Function
test_invalid_residualization_settings_are_rejected
(kwargs)
agent/tests/quantlib/test_neutralization.py:343
Function
test_invalid_retry_policy_is_rejected
( tmp_path: Path, kwargs: dict[str, int], message: str )
agent/tests/test_scheduled_research_executor.py:409
Function
test_invalid_runner_id_reads_as_none
(live_runtime: Path)
agent/tests/test_runtime_liveness.py:82
Function
test_invalid_runner_id_rejected_on_write
(live_runtime: Path)
agent/tests/test_runtime_liveness.py:73
Function
test_invalid_saved_settings_use_existing_errors
( tmp_path: Path, capsys, tool: str, settings: dict, message: str )
agent/tests/test_validation_cli_settings.py:116
Function
test_invalid_schedule_is_repaired_to_spec_default
The other side of the (β) boundary: an INVALID schedule must be repaired, else the validate=False repair write would persist garbage.
agent/tests/scheduling/test_system_jobs.py:349
Function
test_invalid_schedule_rejected
(bad)
agent/tests/quantlib/test_fixedincome.py:74
Method
test_invalid_scope
(self)
agent/tests/test_stock_news_tool.py:213
Method
test_invalid_seed_errors
An invalid seed must not escape as an opaque numpy error.
agent/tests/test_validation.py:112
Method
test_invalid_seed_errors
An invalid seed must not escape as an opaque numpy error.
agent/tests/test_validation.py:190
Function
test_invalid_settings_refused
(values)
agent/tests/test_live_decision_budget.py:117
Method
test_invalid_simulations_errors
A non-positive n_simulations must not raise (was ZeroDivisionError).
agent/tests/test_validation.py:104
Method
test_invalid_sort_by_rejected
(self)
agent/tests/test_market_screener_tool.py:148
Method
test_invalid_source_rejected
(self)
agent/tests/test_engine_robustness.py:418
Method
test_invalid_statement_rejected
(self)
agent/tests/test_financial_statements_tool.py:349
Function
test_invalid_stock_id_is_rejected
( tmp_path: Path, )
agent/tests/test_taiwan_stock_data_tool.py:597
Function
test_invalid_stop_flag_cannot_call_the_broker
(monkeypatch, field)
agent/tests/test_tool_boolean_arguments.py:28
Function
test_invalid_symbol_never_reaches_a_close_submission
(live_runtime, symbol)
agent/tests/test_runtime_flatten.py:631
Method
test_invalid_thresholds_fail_before_any_fetch
(self)
agent/tests/test_regime.py:228
Function
test_invalid_timeout_env_values_fall_back_on_reload
(monkeypatch, caplog)
agent/tests/test_okx_loader_bounded.py:159
Function
test_invalid_timeout_env_values_fall_back_on_reload
(monkeypatch, caplog)
agent/tests/test_ccxt_loader_bounded.py:117
Method
test_invalid_token_threshold_falls_back_to_default
(self, monkeypatch: pytest.MonkeyPatch)
agent/tests/test_env_schema.py:241
Function
test_invalid_tolerance_cannot_disable_attribution_reconciliation
( tolerance: float, )
agent/tests/quantlib/test_attribution_nonfinite.py:27
Function
test_invalid_topk_not_sent
(vendor, topk)
agent/tests/test_gildata_stock_selection.py:51
Function
test_invalid_trade_dates_are_not_reported_as_normal_statistics
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch, bad_date: str, all_bad: bool )
agent/tests/test_trade_journal_invalid_datetime.py:38
Function
test_invalid_transaction_date_is_refused
()
agent/tests/test_extraetf_reader.py:301
Method
test_invalid_ts_code_raises
(self, fsp)
agent/tests/test_fetch_sina_penalties.py:236
Function
test_invalid_values_keep_default_and_warn
( monkeypatch: pytest.MonkeyPatch, caplog: pytest.LogCaptureFixture, raw: str, )
agent/tests/test_source_order_overrides.py:173
Method
test_invalid_window
(self)
agent/tests/test_factor_operators.py:161
Method
test_invalid_window
(self)
agent/tests/test_factor_operators.py:197
Method
test_invalid_window
(self)
agent/tests/test_factor_operators.py:226
Method
test_invalid_window
(self)
agent/tests/test_factor_operators.py:275
Method
test_invalid_windows_errors
A non-positive n_windows must not raise or silently return garbage. n_windows=0 raised ZeroDivisionError; a negative value silently returned
agent/tests/test_validation.py:264
Method
test_invalid_worker_env_falls_back
(self, monkeypatch)
agent/tests/test_bench_parallel.py:147
Method
test_invalidate_clears_cache
invalidate_mcp_specs_cache() should clear all cached entries.
agent/tests/test_mcp_specs_cache.py:361
Method
test_invalidates_with_note
( self, tmp_path: Path, capsys: pytest.CaptureFixture[str] )
agent/tests/test_cli_hypothesis.py:231
Method
test_invalidates_without_note_leaves_existing_note
( self, tmp_path: Path )
agent/tests/test_cli_hypothesis.py:253
Method
test_inverse_variance_weights_sum_to_one
(self)
agent/tests/quantlib/test_portfolio.py:31
Function
test_inverse_weights_reject_nonfinite_variance
(variance: float)
agent/tests/quantlib/test_covariance_weight_stability.py:22
Function
test_inverse_weights_remain_finite_for_small_positive_variances
()
agent/tests/quantlib/test_covariance_weight_stability.py:6
Function
test_inverted_en_dash_range_still_raises
()
agent/tests/test_doc_reader_unicode_page_dashes.py:26
Function
test_inverted_event_window_rejected
()
agent/tests/quantlib/test_eventstudy.py:464
Function
test_inverted_month_filter_raises
()
agent/tests/test_journal_inverted_date_filter.py:20
Function
test_inverted_page_range_raises
()
agent/tests/test_doc_reader_inverted_pages.py:10
Function
test_investment_committee_research_workers_have_fundamental_tools
#1343: bull/bear/risk workers mandate fundamental analysis but their whitelist lacked every fundamental data tool, so each run reported "no fu
agent/tests/test_swarm_presets_packaging.py:222
Function
test_investments_in_associates_decreases_enterprise_value
An equity-method stake's revenue/EBITDA never entered the consolidated operating metrics -- its value must come back out of EV.
agent/tests/quantlib/valuation/test_comps.py:157
Function
test_ipv6_env_entry_accepts_bracketed_host
An env entry of `[::1]` or `::1` must actually match (no `*` needed).
agent/tests/test_mcp_host_origin_guard.py:187
Function
test_ipv6_loopback_accepted_by_default_list
`--host ::1` deployments must not 400 every request (Starlette did).
agent/tests/test_mcp_host_origin_guard.py:178
Function
test_iron_condor_max_profit_inside_body
A short iron condor keeps its entry credit between the body strikes.
agent/tests/test_options_payoff.py:169
Function
test_irregular_times_are_not_sorted_or_resampled_and_missing_dates_are_not_filled
()
agent/tests/quantlib/test_neutralization.py:244
Function
test_is_a_share
(code: str, expected: bool)
agent/tests/test_mootdx_loader.py:35
Function
test_is_anthropic_temperature_unsupported_error_matching
()
agent/tests/test_llm.py:448
Method
test_is_available
yfinance should be available if the package is installed.
agent/tests/test_yfinance_crypto.py:68
Function
test_is_available_always_true
()
agent/tests/test_sina_loader.py:212
Function
test_is_available_contains_secret_bearing_sdk_exception
( monkeypatch: pytest.MonkeyPatch, tmp_path )
agent/tests/test_longbridge_loader.py:68
Function
test_is_available_does_not_make_a_market_data_request
( monkeypatch: pytest.MonkeyPatch, tmp_path )
agent/tests/test_longbridge_loader.py:55
Function
test_is_available_false_for_placeholder
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_tiingo_loader.py:60
Function
test_is_available_false_when_mootdx_missing
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_mootdx_loader.py:211
Function
test_is_available_false_without_key
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_tiingo_loader.py:55
Function
test_is_available_false_without_real_base_url
(base: str)
agent/tests/test_rsshub_events_provider.py:81
Method
test_is_available_true
(self)
agent/tests/test_eastmoney_loader.py:58
Function
test_is_available_true_when_mootdx_present
(fake_client: _FakeStdQuotes)
agent/tests/test_mootdx_loader.py:224
Function
test_is_available_true_with_base_url
()
agent/tests/test_rsshub_events_provider.py:76
Function
test_is_available_true_with_key
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_tiingo_loader.py:66
Function
test_is_bj
(code: str, expected: bool)
agent/tests/test_mootdx_loader.py:201
Method
test_is_clob_token_id
(self, value, expected)
agent/tests/test_prediction_market_tool.py:1097
Function
test_is_data_agent_classification
()
agent/tests/test_swarm_output_contract.py:162
Method
test_is_deterministic
(self)
agent/tests/test_yahoo_loader.py:186
Function
test_is_error_result_error_past_substring_head
G2: an error envelope where ``status`` sits past the 160-char head (long preamble in another field). Substring head-match used to miss this; J
agent/tests/test_swarm_output_contract.py:255
Function
test_is_error_result_nested_error_no_false_positive
A nested ``status`` (e.g. inside ``data``) must NOT count — only the envelope status matters for the deliverable contract.
agent/tests/test_swarm_output_contract.py:248
Function
test_is_error_result_nested_ok_false_no_false_positive
A nested ``ok: false`` (e.g. inside ``data``) must NOT count. Only the envelope's own ``ok``/``success`` matters, mirroring the existing neste
agent/tests/test_swarm_output_contract.py:304
Function
test_is_error_result_non_json_safe
()
agent/tests/test_swarm_output_contract.py:271
Function
test_is_error_result_ok_false_envelope_no_status_key
A failure reported only via ``ok: false`` (no top-level ``status``, e.g. get_stock_news's real failure shape) must count as an error. This is
agent/tests/test_swarm_output_contract.py:285
Function
test_is_error_result_ok_true_is_not_an_error
()
agent/tests/test_swarm_output_contract.py:300
Function
test_is_error_result_other_status_values
Only ``"error"`` counts; ``"warning"`` / ``"degenerate"`` etc. are not error envelopes (the worker still credits them as a tool call).
agent/tests/test_swarm_output_contract.py:278
Function
test_is_error_result_success_false_envelope_no_status_key
()
agent/tests/test_swarm_output_contract.py:296
Function
test_is_error_result_top_level_error
()
agent/tests/test_swarm_output_contract.py:239
Function
test_is_error_result_top_level_ok
()
agent/tests/test_swarm_output_contract.py:244
Function
test_is_error_result_truncated_falls_back_to_substring
Truncated / unparseable JSON still gets the original substring classifier; the function must never raise on the worker hot path.
agent/tests/test_swarm_output_contract.py:264
Function
test_is_loopback_bind_host
(host: str, expected: bool)
agent/tests/test_serve_bind.py:43
Function
test_is_private_allows_global_ranges
(ip: str)
agent/tests/test_url_target_security.py:57
Function
test_is_private_blocks_non_global_ranges
(ip: str)
agent/tests/test_url_target_security.py:52
Function
test_is_registered_never_raises
(clean_registry)
agent/tests/scheduling/test_registry.py:169
Function
test_is_runner_alive_fresh
(live_runtime: Path)
agent/tests/test_runtime_liveness.py:51
Function
test_is_runner_alive_missing_is_false
(live_runtime: Path)
agent/tests/test_runtime_liveness.py:61
Function
test_is_runner_alive_stale
(live_runtime: Path)
agent/tests/test_runtime_liveness.py:56
Function
test_is_secret_key_hint_authoritative_with_regex_failsafe
A hand-written hint's secret flag wins for the keys it covers only.
agent/tests/test_channel_config_meta.py:650
Function
test_is_sensitive_arg_allows_benign_keys
(key: str)
agent/tests/test_redaction_shared.py:136
Function
test_is_sensitive_arg_fails_closed_on_unexpected_token_source
(value: object)
agent/tests/test_redaction_shared.py:208
Function
test_is_sensitive_arg_matches
(key: str)
agent/tests/test_redaction_shared.py:51
Function
test_is_sensitive_arg_matches_account_pii
H1: curated exact account/PII field names redact.
agent/tests/test_redaction_shared.py:130
Function
test_is_sensitive_arg_preserves_account_ref_and_benign_account_fields
Exact-match (not substring) PII keys keep ``account_ref`` and other benign ``account*`` fields readable, preventing over-redaction.
agent/tests/test_redaction_shared.py:151
Function
test_is_sensitive_arg_preserves_benign_token_fields
The ``"token"`` credential marker is a substring match (to catch ``access_token``, ``refresh_token`` …), so token counts/budgets and the publi
agent/tests/test_redaction_shared.py:190
Function
test_is_sensitive_arg_preserves_token_source_label
(label: str | None)
agent/tests/test_redaction_shared.py:201
Function
test_is_sensitive_arg_still_catches_token_credentials
(key: str)
agent/tests/test_redaction_shared.py:236
Function
test_is_spa_html_route_correlation
()
agent/tests/test_api_infrastructure.py:190
Function
test_is_spa_html_route_runs_collection_not_spa
()
agent/tests/test_api_infrastructure.py:204
← previous
next →
19,701–19,800 of 26,887, ranked by callers