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_user_preset_overrides_bundled_stem
(user_presets_dir)
agent/tests/test_swarm_presets_packaging.py:167
Function
test_user_token_200_without_bot_flag_reports_invalid_credentials
A pasted OAuth *user* token answers 200 without ``"bot": true``. ``token_key="bot"`` routes that through the shared "200 but token_key missin
agent/tests/test_discord_connection_test.py:135
Function
test_user_token_is_rejected_before_opening_socket
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_slack_connection_test.py:303
Method
test_uses_declared_defaults
(self, tmp_path: Path)
agent/tests/test_research_playbooks.py:311
Method
test_uses_initialized_worker_inputs
(self)
agent/tests/test_bench_parallel.py:42
Function
test_uses_responses_api_matches_provider_route
( monkeypatch: pytest.MonkeyPatch, provider: str, adapter: str | None, native_available: bool,
agent/tests/test_llm_reasoning_effort.py:125
Function
test_utf16_bom_not_latin1_mojibake
(tmp_path: Path)
agent/tests/test_doc_reader.py:66
Function
test_utf16_offset_to_index_accounts_for_supplementary_plane_chars
()
agent/tests/test_signal_mention_utf16.py:9
Method
test_utf8_bom_before_frontmatter
(self)
agent/tests/test_skills.py:51
Method
test_utf8_bom_does_not_hide_the_frontmatter
A BOM from a Windows editor must not read as 'missing frontmatter'.
agent/tests/test_research_playbooks.py:295
Function
test_v11_assembly_never_carries_v12_fields
()
agent/tests/test_paper_trade_v12_schema.py:430
Function
test_v11_contract_file_is_not_edited
()
agent/tests/test_paper_trade_v12_schema.py:488
Function
test_v11_hash_is_the_frozen_coverage_object
()
agent/tests/test_paper_trade_v12_schema.py:298
Function
test_v11_payload_key_set_is_the_frozen_set
()
agent/tests/test_paper_trade_v12_schema.py:357
Function
test_v11_result_stays_valid_under_the_additive_v12_document
()
agent/tests/test_paper_trade_v12_schema.py:378
Function
test_v12_assembly_computes_a_fingerprint_before_the_engine_populates_it
()
agent/tests/test_paper_trade_v12_schema.py:421
Function
test_v12_assembly_reads_the_engine_populated_outcome_fields
()
agent/tests/test_paper_trade_v12_schema.py:397
Function
test_v12_contract_file_declares_the_additive_surface
()
agent/tests/test_paper_trade_v12_schema.py:465
Function
test_v12_contract_requires_the_additive_fields_only_for_a_v12_document
()
agent/tests/test_paper_trade_v12_schema.py:478
Function
test_v12_payload_adds_exactly_the_three_documented_keys
()
agent/tests/test_paper_trade_v12_schema.py:364
Function
test_v12_result_does_not_validate_as_a_v11_document
()
agent/tests/test_paper_trade_v12_schema.py:391
Function
test_v12_without_a_fingerprint_fails_closed
()
agent/tests/test_paper_trade_v12_schema.py:440
Function
test_v1_live_record_is_migrated_when_recovered
(tmp_path)
agent/tests/test_background_store_recovery.py:395
Function
test_v1_terminal_record_does_not_invent_a_duplicate_notification
(tmp_path)
agent/tests/test_background_store_recovery.py:358
Function
test_vague_prompt_keeps_the_previous_defaults
()
agent/tests/test_swarm_tool_variables.py:98
Function
test_val_whitelist_covers_exactly_the_daily_basic_fields
()
agent/tests/factors/test_fundamental_valuation_samples.py:332
Method
test_valid_bearer_is_accepted
( self, method: str, path: str, expected: int, rest_store: ScheduledRe
agent/tests/test_playbooks_surface.py:374
Method
test_valid_config
(self)
agent/tests/test_engine_robustness.py:335
Function
test_valid_date_formats_keep_normal_report
( tmp_path, monkeypatch, dates, expected_range )
agent/tests/test_trade_journal_invalid_datetime.py:118
Function
test_valid_dividend_only_journal_is_accepted
(tmp_path, monkeypatch)
agent/tests/test_trade_journal_invalid_datetime.py:128
Function
test_valid_edited_schedule_is_preserved_beta_local_trust
(ii-c) choice (β): a syntactically VALID user-edited schedule is trusted local configuration and left alone — with its next_run_at.
agent/tests/scheduling/test_system_jobs.py:334
Function
test_valid_final_answer_passes_and_wrong_symbol_value_fails
(tmp_path)
agent/tests/test_grounding_keyed_metric_paths.py:118
Function
test_valid_grouping_and_explicit_ambiguity_resolution
(tmp_path, text, separator, expected)
agent/tests/test_entities_grouping_validation.py:29
Function
test_valid_low_density_still_exits_and_unknown_density_keeps_state
()
agent/tests/test_regime_undefined_correlation_regressions.py:19
Method
test_valid_optimizer
(self)
agent/tests/test_base_engine.py:867
Method
test_valid_optional_int_is_coerced
(self, monkeypatch: pytest.MonkeyPatch)
agent/tests/test_env_schema.py:252
Function
test_valid_price_does_not_launder_unsupported_analysis_metric
A valid quote must not make an invented backtest metric acceptable.
agent/tests/test_agent_grounding.py:2972
Method
test_valid_range
(self)
agent/tests/test_engine_robustness.py:509
Method
test_valid_rows_survive_alongside_tampered_row
(self, tmp_path, caplog)
agent/tests/test_strategy_discovery_store.py:247
Function
test_valid_single_call_tool_field_or_observed_symbol_ref_survives
(tmp_path, ref)
agent/tests/test_grounding_unknown_single_refs.py:46
Function
test_valid_singleton_and_ordinary_inverse_weights_are_unchanged
()
agent/tests/quantlib/test_covariance_weight_stability.py:27
Method
test_valid_sources_covers_all_registered_loaders
Every registered loader name must be an accepted config source, so a new loader can never be silently rejected by the config schema.
agent/tests/test_engine_robustness.py:469
Function
test_valid_specific_variances_add_their_risk
()
agent/tests/quantlib/test_factormodel_negative_specific_variance.py:31
Function
test_valid_structured_calls_are_not_retried_after_native_metadata
(fake_cli)
agent/tests/test_claude_cli_provider.py:203
Function
test_valid_tau_calibration_can_be_consumed_by_the_cdf
(tau, expected)
agent/tests/quantlib/test_gaussian_copula_boundary.py:15
Function
test_valid_timeout_env_values_are_honored_on_reload
(monkeypatch)
agent/tests/test_okx_loader_bounded.py:176
Function
test_valid_timeout_env_values_are_honored_on_reload
(monkeypatch)
agent/tests/test_ccxt_loader_bounded.py:134
Function
test_valid_zero_runtime_source_is_missing
(monkeypatch, tmp_path, runtime_values)
agent/tests/test_longbridge_credentials.py:251
Function
test_validate_api_auth_returns_a_loopback_principal_when_no_key
(monkeypatch)
agent/tests/test_principal.py:187
Function
test_validate_api_auth_returns_a_shared_key_principal
(monkeypatch)
agent/tests/test_principal.py:166
Method
test_validate_api_key_prefix
(self)
agent/tests/test_cli_init.py:59
Function
test_validate_generated_rejects_missing_class
()
agent/tests/test_shadow_account.py:250
Function
test_validate_generated_rejects_syntax_error
()
agent/tests/test_shadow_account.py:257
Function
test_validate_horizon_accepts_in_range_values
()
agent/tests/test_alpha_bench_horizon.py:194
Function
test_validate_horizon_rejects_out_of_range_or_non_int
(bad: object)
agent/tests/test_alpha_bench_horizon.py:202
Method
test_validate_model_registration_passes_when_both_set
(self)
agent/tests/test_strategy_store.py:989
Method
test_validate_model_registration_rejects_blank_strings
Whitespace-only intended_use/limitations count as empty.
agent/tests/test_strategy_store.py:980
Method
test_validate_model_registration_requires_intended_use
(self)
agent/tests/test_strategy_store.py:968
Method
test_validate_model_registration_requires_limitations
(self)
agent/tests/test_strategy_store.py:974
Function
test_validate_ohlc_drops_invariant_violations
high<low, prices<=0, and high/low not bracketing open/close are dropped.
agent/tests/test_ohlc_validation.py:23
Function
test_validate_ohlc_passthrough_when_no_ohlc_columns
A frame without OHLC columns (or empty) is returned unchanged.
agent/tests/test_ohlc_validation.py:59
Function
test_validate_ohlc_raise_strategy
strategy='raise' surfaces the violation instead of silently dropping.
agent/tests/test_ohlc_validation.py:41
Function
test_validate_ohlc_warn_strategy_keeps_rows
strategy='warn' logs but keeps the offending rows.
agent/tests/test_ohlc_validation.py:48
Function
test_validate_path_param_accepts_known_good_values
(value: str)
agent/tests/test_security_auth_api.py:748
Function
test_validate_path_param_empty
()
agent/tests/test_api_infrastructure.py:171
Function
test_validate_path_param_path_traversal
()
agent/tests/test_api_infrastructure.py:161
Function
test_validate_path_param_rejects_traversal_inputs
(value: str)
agent/tests/test_security_auth_api.py:769
Function
test_validate_path_param_special_chars
()
agent/tests/test_api_infrastructure.py:177
Function
test_validate_path_param_valid
()
agent/tests/test_api_infrastructure.py:157
Function
test_validate_url_target_allows_public_ip_literal
()
agent/tests/test_url_target_security.py:69
Function
test_validate_url_target_blocks_cgnat_ip_literal
(ip: str)
agent/tests/test_url_target_security.py:62
Function
test_validate_url_target_loopback_only_with_opt_in
()
agent/tests/test_url_target_security.py:74
Method
test_validated_to_approved_allowed
(self)
agent/tests/test_strategy_store.py:1020
Method
test_validation
(self)
agent/tests/test_cross_market_annualization.py:101
Function
test_validation_date_is_never_auto_filled
(tools)
agent/tests/test_sdm_governance_wiring.py:181
Function
test_validation_error_names_the_directory_it_checked
The path matters: a caller whose run_dir was supplied by someone else (e.g. a swarm worker injecting the agent workspace) has no way to tell that
agent/tests/test_backtest_tool_state.py:73
Function
test_validation_error_records_no_state
(tool_run_dir)
agent/tests/test_backtest_tool_state.py:64
Method
test_validation_errors
(self)
agent/tests/quantlib/test_microstructure.py:65
Function
test_validation_is_carried_once_and_not_also_in_metrics
`card["validation"] = metrics["validation"]` - the same object. So it belongs under its own key only, never a second time in the metrics or s
agent/tests/test_run_card_structured_metrics.py:95
Function
test_validation_job_never_pushes
The job that runs on ordinary commits must build only.
agent/tests/test_docker_workflow_publish_guard.py:58
Function
test_validation_job_uses_the_same_action_pins_as_the_publish_job
A validation that ran different versions would prove nothing. The point of this job is to exercise the pins the release build uses, so a drif
agent/tests/test_docker_workflow_publish_guard.py:69
Method
test_validation_json_written_when_artifacts_dir_absent
Enabling validation must not crash when run_dir/artifacts is absent. The validation.json write (step 7) runs before _write_artifacts()
agent/tests/test_engine_robustness.py:626
Function
test_validation_rejects_nonpositive_or_infinite_observed_equity
(bad)
agent/tests/test_validation.py:505
Function
test_validation_requires_positive_finite_starting_capital
(initial)
agent/tests/test_validation.py:514
Method
test_validation_status_enum
(self)
agent/tests/test_strategy_store.py:925
Function
test_validation_summary_with_counts_and_line_cites_passes_end_to_end
A verdict naming counts and line citations passes with no mask at all. "1 项事实错误", "~line 206" and "16 个交易日" each had a mask written for them.
agent/tests/test_agent_grounding.py:1974
Function
test_validator_rejects_wildcard_for_aliased_live_broker_url
()
agent/tests/test_readonly_default.py:176
Function
test_validator_rejects_wildcard_for_live_broker
()
agent/tests/test_readonly_default.py:159
Method
test_validator_reports_missing_wrong_and_extra
(self)
agent/tests/test_paper_trade_jcs.py:286
Function
test_valuation_metrics_exact
()
agent/tests/test_financial_rigor_tool.py:126
Function
test_valuation_skips_zero_and_missing_inputs
()
agent/tests/test_financial_rigor_tool.py:134
Function
test_value_investing_committee_is_routable
value_investing_committee must be in the routing table, not just on disk.
agent/tests/test_swarm_presets_packaging.py:44
Function
test_value_position_converts_when_rate_exists
()
agent/tests/test_portfolio_fx.py:60
Function
test_value_position_without_rate_fails_closed
()
agent/tests/test_portfolio_fx.py:55
Method
test_value_strings_coerced
(self)
agent/tests/test_gildata_research_tools.py:131
Method
test_values_stay_in_unit_interval
(self)
agent/tests/test_regime.py:64
Function
test_var_backtest_breach_dates_are_the_actual_breach_labels
()
agent/tests/quantlib/test_var_backtest.py:311
Function
test_var_backtest_counts_only_originally_adjacent_observations
( missing_side: str, )
agent/tests/quantlib/test_var_backtest_missing_transitions.py:11
Function
test_var_backtest_end_to_end_on_a_calibrated_model
()
agent/tests/quantlib/test_var_backtest.py:282
Function
test_var_backtest_end_to_end_on_an_understated_model
()
agent/tests/quantlib/test_var_backtest.py:299
← previous
next →
26,201–26,300 of 26,887, ranked by callers