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_redact_text_leaves_benign_output_readable
Only credential-shaped ``key=value`` pairs are touched.
agent/tests/test_redaction.py:251
Function
test_redact_text_none_and_empty_and_nonstr_safe
()
agent/tests/test_redaction.py:263
Function
test_redact_text_scrubs_credential_shapes
(raw: str, expected: str)
agent/tests/test_redaction.py:210
Function
test_redact_text_scrubs_every_line_of_multiline_output
()
agent/tests/test_redaction.py:256
Function
test_redact_text_scrubs_url_userinfo
(raw: str, expected: str)
agent/tests/test_redaction.py:205
Function
test_redact_tool_result_is_idempotent
(raw: str)
agent/tests/test_redaction_shared.py:352
Function
test_redact_tool_result_keeps_document_content_readable
The over-redaction the sink policy fixes: a document envelope stays legible.
agent/tests/test_redaction_shared.py:336
Function
test_redact_tool_result_none_and_empty_safe
()
agent/tests/test_redaction_shared.py:357
Function
test_redact_tool_result_scrubs_basic_authorization_in_stdout
A Basic credential in a JSON result's free-text field must not survive.
agent/tests/test_redaction.py:269
Function
test_redact_tool_result_scrubs_free_text_inside_a_json_envelope
A JSON envelope routinely wraps raw output under a benign key. ``bash_tool`` returns ``{"status", "exit_code", "stdout", "stderr"}``, so a se
agent/tests/test_redaction_shared.py:310
Function
test_redact_tool_result_scrubs_json_keys_and_keeps_valid_json
()
agent/tests/test_redaction_shared.py:299
Function
test_redact_tool_result_scrubs_plain_text_results
()
agent/tests/test_redaction_shared.py:331
Function
test_redacted_release_adds_provenance_the_cut_draft_still_lacks
(tmp_path: Path)
agent/tests/test_grounding_release.py:443
Function
test_redacted_release_cuts_a_figure_the_recheck_finds_in_a_table
A figure withheld from the first pass is still a gate finding on recheck, so it is cut.
agent/tests/test_grounding_release.py:531
Function
test_redacted_release_cuts_a_metric_cell_in_a_table
A metrics table is the ordinary shape of the report this path exists to rescue.
agent/tests/test_grounding_release.py:1355
Function
test_redacted_release_cuts_every_flagged_figure_in_one_pass
Every figure is located and checked, so none of them waits for a recheck. The validators used to report the FIRST unmatched figure in a clause, s
agent/tests/test_grounding_release.py:420
Function
test_redacted_release_declines_a_provenance_only_validation
Nothing to cut means no release; the loop's repair path owns that case.
agent/tests/test_grounding_release.py:1567
Function
test_redacted_release_keeps_the_analysis_and_cuts_the_figure
(tmp_path: Path)
agent/tests/test_grounding_release.py:389
Function
test_redacted_release_locates_a_grouped_number
A price above 999 written the ordinary way must still reach the release path.
agent/tests/test_grounding_release.py:1325
Function
test_redacted_release_never_cuts_an_observed_price
A correctly quoted close sharing a sentence with an ungrounded metric survives. The analysis validator reported the FIRST unmatched figure in a c
agent/tests/test_grounding_release.py:1477
Function
test_redacted_release_never_cuts_inside_another_number
A bare table cell "1.10" must not be located inside "21.10 亿元".
agent/tests/test_grounding_release.py:1370
Function
test_redacted_release_never_cuts_ticker_digits
A clause attributing figures to an unhandled symbol loses its figures, not the ticker.
agent/tests/test_grounding_release.py:455
Function
test_redacted_release_refuses_a_code_it_cannot_cut
(tmp_path: Path)
agent/tests/test_grounding_release.py:508
Function
test_redacted_release_refuses_an_unlocked_identity
A failed resolution leaves identity invalidated; no cut-down draft may ship.
agent/tests/test_grounding_release.py:491
Function
test_redacted_release_refuses_when_the_clause_cannot_be_located
(tmp_path: Path)
agent/tests/test_grounding_release.py:521
Function
test_redacted_release_refuses_when_the_recheck_finds_what_it_cannot_cut
Only text that passes the gate is released; an identity finding on recheck ends it.
agent/tests/test_grounding_release.py:548
Function
test_redacted_release_refuses_without_price_evidence
(tmp_path: Path)
agent/tests/test_grounding_release.py:482
Function
test_redacted_release_releases_three_figures_in_one_clause
The pass bound is pinned from below as well as above. ``test_redacted_release_gives_up_after_the_pass_bound`` only proves the bound is under
agent/tests/test_grounding_release.py:1547
Function
test_redacted_release_reports_every_cut
(tmp_path: Path)
agent/tests/test_grounding_release.py:407
Function
test_redacted_release_swallows_the_unit_flush_against_the_marker
The marker replaces the figure AND its unit, in either language.
agent/tests/test_grounding_release.py:1498
Function
test_redacted_release_writes_english_for_an_english_user
(tmp_path: Path)
agent/tests/test_grounding_release.py:469
Function
test_redaction_happens_before_all_sinks
All three sinks (ledger, trace, callback) receive the SAME redacted dict; nothing sees the raw secret/account number.
agent/tests/test_audit_redact.py:245
Method
test_redistribution_can_trigger_second_pass
(self)
agent/tests/test_constraints.py:34
Function
test_reentry_penalty_starts_from_cash_not_the_liquidated_book
()
agent/tests/test_turnover_direction_changes.py:80
Function
test_reference_level_and_currency_thresholds_pass_end_to_end
The SPCX.US verdict prose passes once its figures are declared. Every number here used to need a mask of its own: an ATH mask for 225.64, a c
agent/tests/test_agent_grounding.py:1922
Function
test_reference_links_are_document_relative
Every references/ or scripts/ link is written relative to its SKILL.md. The allowed prefixes are imported from the tool rather than restated, so
agent/tests/test_skill_reference_links.py:129
Function
test_reference_links_resolve_the_way_github_resolves_them
Every link exists relative to its SKILL.md, and is the file read_file reads. Resolving against the containing directory is what a browser does, a
agent/tests/test_skill_reference_links.py:162
Function
test_reference_links_resolve_through_read_file
Every references/ link resolves to an existing file via read_file. Also the ambiguity guard: ``read_file`` refuses rather than guesses when t
agent/tests/test_skill_reference_links.py:149
Method
test_reference_price_comes_from_the_composites_close_panel
The band works off shared bar state, not just a ``pre_close`` column. A stateless sub-engine has no close panel, so this is the half of the
agent/tests/test_composite_vietnam_rules.py:127
Method
test_referenced_tools_are_real
(self)
agent/tests/test_institutional_commands.py:366
Method
test_referenced_tools_are_real_live_classes
Re-check the names against the LIVE tool classes, not the sources. The regex scraper above proves a string exists in ``src/tools``; it
agent/tests/test_institutional_commands.py:373
Method
test_referer_is_sent_because_the_endpoint_404s_without_one
(self)
agent/tests/test_etf_holdings_tool.py:946
Function
test_refresh_aggregates_three_readonly_connectors
(tmp_path)
agent/tests/test_portfolio_service.py:79
Function
test_refresh_config_rejects_invalid_section_preserving_old
A section that fails validation returns False and leaves the old config.
agent/tests/test_channel_noop_refresh.py:54
Function
test_refresh_config_swaps_values_on_real_adapter
A valid section re-validates and swaps in place, keeping the model type.
agent/tests/test_channel_noop_refresh.py:39
Function
test_refresh_exits_zero_for_a_complete_snapshot
()
agent/tests/test_cli_portfolio.py:121
Function
test_refresh_gated_on_env_snapshot
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_source_order_overrides.py:124
Function
test_refresh_lock_uses_windows_byte_range_backend
( monkeypatch: pytest.MonkeyPatch, tmp_path: Path, )
agent/tests/test_openai_codex.py:526
Function
test_refresh_prints_and_exits_nonzero_when_incomplete
(capsys)
agent/tests/test_cli_portfolio.py:112
Function
test_refresh_reports_a_runtime_error_instead_of_crashing
(capsys)
agent/tests/test_cli_portfolio.py:126
Function
test_refresh_uses_each_ibkr_connections_endpoint_for_account_positions_and_quotes
(tmp_path, monkeypatch)
agent/tests/test_portfolio_service.py:35
Function
test_refreshes_once_after_401_with_rejected_token
(monkeypatch)
agent/tests/test_codex_model_discovery.py:93
Method
test_refusal_latches_so_one_request_covers_the_batch
( self, monkeypatch, caplog, label, status_code, text, )
agent/tests/test_stooq_loader.py:413
Method
test_refusal_warning_names_the_cause
A 429 must not report itself as an anti-bot challenge page.
agent/tests/test_stooq_loader.py:438
Method
test_refuses_a_source_outside_the_allowed_run_roots
The copy loop validates the path itself, not just upstream. ``run_dir`` is read back out of a tool result here, so the check that mak
agent/tests/test_loop_helpers.py:550
Function
test_regime_failure_does_not_discard_valid_matrix
(monkeypatch)
agent/tests/test_analysis_reliability.py:80
Function
test_regime_route_rejects_days_below_floor
(local_client)
agent/tests/test_regime.py:316
Function
test_regime_route_rejects_inverted_thresholds
(local_client)
agent/tests/test_regime.py:307
Function
test_regime_route_requires_auth_for_remote_client
(monkeypatch)
agent/tests/test_regime.py:288
Function
test_regime_route_returns_computation_result
(local_client, monkeypatch)
agent/tests/test_regime.py:279
Function
test_regime_route_shares_correlation_rate_limit_budget
One budget across /correlation and /correlation/regime, per maintainer ask.
agent/tests/test_regime.py:347
Function
test_regime_route_validates_code_count
(local_client)
agent/tests/test_regime.py:298
Function
test_regime_route_value_error_surfaces_and_generic_is_masked
( local_client, monkeypatch )
agent/tests/test_regime.py:325
Function
test_regime_uses_same_calendar_alignment
(monkeypatch)
agent/tests/test_crossmarket_dates_regressions.py:24
Method
test_regimes_tuple_exact
(self)
agent/tests/test_strategy_discovery_models.py:36
Method
test_register_adds_to_registry
(self)
agent/tests/test_registry.py:106
Method
test_register_and_get
Register an artifact and retrieve it.
agent/tests/test_strategy_store.py:652
Function
test_register_and_run_halt_action
(live_runtime: Path)
agent/tests/test_halt.py:126
Method
test_register_artifact
(self)
agent/tests/test_strategy_store.py:159
Method
test_register_auto_id
(self)
agent/tests/test_strategy_store.py:168
Method
test_register_auto_id
Empty ID gets auto-generated.
agent/tests/test_strategy_store.py:665
Method
test_register_auto_timestamp
(self)
agent/tests/test_strategy_store.py:174
Method
test_register_auto_timestamp
Timestamps auto-set when not provided.
agent/tests/test_strategy_store.py:672
Function
test_register_decorator_added_sina_to_registry
()
agent/tests/test_sina_loader.py:221
Method
test_register_directly_as_approved_blocked
A model can't be born APPROVED — it has no prior VALIDATED state.
agent/tests/test_strategy_store.py:1098
Method
test_register_duplicate_name_universe_rejected
(self)
agent/tests/test_strategy_store.py:182
Method
test_register_duplicate_name_universe_rejected
UNIQUE(name, universe) surfaces as a friendly ValueError.
agent/tests/test_strategy_store.py:681
Function
test_register_internal_is_documented_module_and_test_only
()
agent/tests/scheduling/test_registry.py:244
Function
test_register_is_idempotent_latest_wins
(live_runtime: Path)
agent/tests/test_halt.py:147
Function
test_register_mirrored_tool_refuses_a_non_readonly_class
The mirroring helper is a structural gate, not a convention. A mutating class handed to ``_register_mirrored_tool`` must be refused and must
agent/tests/test_mcp_new_tools.py:227
Function
test_register_rejects_malformed_names_and_non_callables
(clean_registry)
agent/tests/scheduling/test_registry.py:179
Function
test_register_rejects_silent_overwrite_without_replace
(clean_registry)
agent/tests/scheduling/test_registry.py:189
Method
test_register_returns_class_unchanged
(self)
agent/tests/test_registry.py:113
Method
test_register_tool_duplicate_rejected
Registering the same (name, universe) twice returns an error.
agent/tests/test_strategy_store.py:519
Method
test_register_tool_factor
(self)
agent/tests/test_strategy_store.py:372
Method
test_register_tool_missing_required
(self)
agent/tests/test_strategy_store.py:405
Method
test_register_tool_strategy
(self)
agent/tests/test_strategy_store.py:390
Method
test_registered_in_registry
(self)
agent/tests/test_tickerall_loader.py:92
Method
test_registered_in_registry
(self)
agent/tests/test_gildata_loader.py:54
Method
test_registered_in_registry
(self)
agent/tests/test_fmp_loader.py:31
Function
test_registered_name_resolves_to_the_same_object
(clean_registry)
agent/tests/scheduling/test_registry.py:41
Method
test_registered_once_and_resolvable
(self)
agent/tests/test_playbooks_surface.py:564
Function
test_registered_quantlib_tool_reports_the_current_drawdown_episode
()
agent/tests/quantlib/test_drawdown_revisited_peak.py:49
Function
test_registered_title_route_updates_actual_search
( owned_title_routes, monkeypatch, automatic )
agent/tests/test_session_search_title_updates.py:59
Function
test_registering_as_in_validation_is_allowed
(tools)
agent/tests/test_sdm_governance_wiring.py:152
Function
test_registering_straight_into_approved_is_refused
(tools)
agent/tests/test_sdm_governance_wiring.py:142
Method
test_registration_does_not_steal_a_claimed_alias
( self, monkeypatch: pytest.MonkeyPatch )
agent/tests/test_institutional_commands.py:129
Function
test_registration_failure_never_escapes
A broken bridge must not take the core API down.
agent/tests/test_openbb_bridge/test_registration_guard.py:58
Function
test_registration_is_a_no_op_without_the_extra
(without_openbb_ai: None)
agent/tests/test_openbb_bridge/test_registration_guard.py:40
Method
test_registration_is_idempotent
(self)
agent/tests/test_playbooks_surface.py:573
← previous
next →
23,001–23,100 of 26,887, ranked by callers