MCPcopy Create free account

hub / github.com/alibaba/open-code-review / functions

Functions7,484 in github.com/alibaba/open-code-review

FunctionTestEmitRunResult_AgentTextRestoresQuiet
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:511
FunctionTestEmitRunResult_BudgetExceededFalseOmittedFromJSON
TestEmitRunResult_BudgetExceededFalseOmittedFromJSON is a regression guard that the omitempty tag on BudgetExceeded keeps the success JSON free of the
cmd/opencodereview/budget_output_test.go:280
FunctionTestEmitRunResult_CommentSeverityOrder
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:358
FunctionTestEmitRunResult_JSONBudgetDoesNotOverrideLegacyStatus
TestEmitRunResult_JSONBudgetDoesNotOverrideLegacyStatus guards the legacy (manifest-less) path: budgetExceeded must not rewrite the warning-derived st
cmd/opencodereview/budget_output_test.go:94
FunctionTestEmitRunResult_JSONBudgetStopIsPartial
TestEmitRunResult_JSONBudgetStopIsPartial pins the unified terminal-state contract for a controlled budget stop that still covered something: the top-
cmd/opencodereview/budget_output_test.go:27
FunctionTestEmitRunResult_JSONCarriesRetryReport
--- retry report at the emit boundary (#368 P5) --- These cases pin how a frozen retry report reaches the two run exits, emitRunResult and emitFailure
cmd/opencodereview/emit_run_result_test.go:638
FunctionTestEmitRunResult_JSONHasNoReportText
JSON mode must keep stdout a single JSON document, so the text renderer never runs there.
cmd/opencodereview/emit_run_result_test.go:714
FunctionTestEmitRunResult_JSONIncludesSessionID
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:616
FunctionTestEmitRunResult_JSONIncludesToolFailureArguments
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:117
FunctionTestEmitRunResult_JSONLLMIdentityNamedProvider
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:147
FunctionTestEmitRunResult_JSONLLMIdentityOmitsUnknownProvider
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:164
FunctionTestEmitRunResult_JSONManifestMatchesPersistedSessionEnd
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:239
FunctionTestEmitRunResult_JSONNoBudgetIsSuccess
TestEmitRunResult_JSONNoBudgetIsSuccess verifies the default path is unchanged: BudgetExceeded()==false yields the normal status (regression guard tha
cmd/opencodereview/budget_output_test.go:121
FunctionTestEmitRunResult_JSONNoFiles
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:96
FunctionTestEmitRunResult_JSONNoFilesTraceID
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:588
FunctionTestEmitRunResult_JSONOmitsRetryReportWhenNil
A run with nothing to report must emit exactly the pre-#368 JSON shape.
cmd/opencodereview/emit_run_result_test.go:662
FunctionTestEmitRunResult_JSONSkippedIncludesManifest
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:220
FunctionTestEmitRunResult_JSONTraceIDFromContext
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:558
FunctionTestEmitRunResult_JSONUsesManifestTerminalState
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:184
FunctionTestEmitRunResult_JSONWithComments
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:330
FunctionTestEmitRunResult_JSONWithResumeInfo
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:391
FunctionTestEmitRunResult_NilQuietHandle
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:547
FunctionTestEmitRunResult_Sarif
--- AC-12: emitRunResult with sarif format produces valid SARIF ---
cmd/opencodereview/sarif_test.go:376
FunctionTestEmitRunResult_SarifNoFiles
--- AC-3: No-files scenario via emitRunResult ---
cmd/opencodereview/sarif_test.go:118
FunctionTestEmitRunResult_TextCompleteReportsFindingsAndWaived
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:442
FunctionTestEmitRunResult_TextDoesNotPrintSuccessfulSessionHint
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:462
FunctionTestEmitRunResult_TextNoComments
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:417
FunctionTestEmitRunResult_TextOmitsReportWhenNil
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:700
FunctionTestEmitRunResult_TextPartialNeverLooksGood
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:430
FunctionTestEmitRunResult_TextReportOrder
Order is part of the terminal contract: comments/manifest first, then the retry report, then the project summary.
cmd/opencodereview/emit_run_result_test.go:676
FunctionTestEmitRunResult_TextReportWithWarnings
warningsForOutput is unrelated to the report, but the text exit now writes between the warnings block and the project summary; keep a case where both
cmd/opencodereview/emit_run_result_test.go:776
FunctionTestEmitRunResult_TextWithComments
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:475
FunctionTestEmitRunResult_TextWithProjectSummary
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:492
FunctionTestEmitRunResult_TextWriteFailurePropagates
TestEmitRunResult_TextWriteFailurePropagates pins the text/json parity: a --output write failure in text mode must make emitRunResult return an error
cmd/opencodereview/output_file_test.go:604
FunctionTestEmptyInputRejected
(t *testing.T)
acp/internal/intent/slash_test.go:166
FunctionTestEncodeRepoPath
(t *testing.T)
internal/session/persist_test.go:23
FunctionTestEncodingForModel
(t *testing.T)
internal/llm/client_test.go:1988
FunctionTestEndSpan_NoError
(t *testing.T)
internal/telemetry/span_test.go:79
FunctionTestEndSpan_WithError
(t *testing.T)
internal/telemetry/span_test.go:85
FunctionTestEnforceGroupTokenBudget_NoSplit
(t *testing.T)
internal/agent/grouping_test.go:175
FunctionTestEnforceGroupTokenBudget_Split
(t *testing.T)
internal/agent/grouping_test.go:185
FunctionTestEnforceMaxFilesPerGroup_NoSplit
(t *testing.T)
internal/agent/grouping_test.go:202
FunctionTestEnforceMaxFilesPerGroup_Split
(t *testing.T)
internal/agent/grouping_test.go:212
FunctionTestEnsureMessagesSuffix
(t *testing.T)
internal/llm/resolver_test.go:2463
FunctionTestEnsureMetrics_Idempotent
(t *testing.T)
internal/telemetry/metrics_test.go:48
FunctionTestEnsureModelInList
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1666
FunctionTestEnsureTelemetry
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1107
FunctionTestEnterEditCustomProvider_ProtocolIndex
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:2869
FunctionTestErrorClassAndFailurePhaseSets
The enum sets are fixed by the report contract: 8 error classes and 6 failure phases. Enumerating them pins both the membership and the size, so addin
internal/llm/retry_report_test.go:42
FunctionTestErrorEvent_Disabled
(t *testing.T)
internal/telemetry/events_test.go:124
FunctionTestErrorEvent_Enabled
(t *testing.T)
internal/telemetry/events_test.go:107
FunctionTestErrorEvent_NilCtx
(t *testing.T)
internal/telemetry/events_test.go:119
FunctionTestErrorEvent_NilErr
(t *testing.T)
internal/telemetry/events_test.go:113
FunctionTestErrorFormatting
(t *testing.T)
acp/internal/testutil/stub_test.go:122
FunctionTestEscapeControl
(t *testing.T)
internal/tool/comment_args_repair_test.go:252
FunctionTestEstimateCost_EmptyItems
(t *testing.T)
internal/scan/estimate_test.go:133
FunctionTestEstimateCost_ScalesWithContentAndPhases
(t *testing.T)
internal/scan/estimate_test.go:32
FunctionTestEstimateDiffCost
TestEstimateDiffCost verifies the aggregate estimate sums per-file costs, skips deleted/empty diffs, and satisfies TotalTokens == Input + Output. Used
internal/agent/estimate_test.go:66
FunctionTestEstimateDiffCost_ScalesWithContent
TestEstimateDiffCost_ScalesWithContent verifies that a larger diff projects strictly more tokens than a small one (the estimate isn't a flat constant)
internal/agent/estimate_test.go:96
FunctionTestEstimateDiffFileTokens_ZeroForSkipped
TestEstimateDiffFileTokens_ZeroForSkipped verifies deleted and empty diffs project to zero tokens so they never trip the budget gate (they are skipped
internal/agent/estimate_test.go:43
FunctionTestEstimateFileTokens
(t *testing.T)
internal/scan/estimate_test.go:69
FunctionTestEstimateFileTokens_UsesPerFilePlanPredicate
(t *testing.T)
internal/scan/estimate_test.go:98
FunctionTestEstimate_StringMentionsTokens
(t *testing.T)
internal/scan/estimate_test.go:140
FunctionTestEvent_Disabled
(t *testing.T)
internal/telemetry/events_test.go:89
FunctionTestEvent_Enabled
(t *testing.T)
internal/telemetry/events_test.go:83
FunctionTestEvent_NilCtx
(t *testing.T)
internal/telemetry/events_test.go:96
FunctionTestEventf_Enabled
(t *testing.T)
internal/telemetry/events_test.go:101
FunctionTestEveryPositionalCommandUsesFriendlyErrors
TestEveryPositionalCommandUsesFriendlyErrors walks the whole command tree and fails if a command that declares positional placeholders in Use still re
cmd/opencodereview/arg_errors_test.go:205
FunctionTestExactPathspecsRespectArgumentBudget
(test *testing.T)
internal/behaviortask/prepare_test.go:82
FunctionTestExchangeIdentityAndScopes
(t *testing.T)
internal/chatgptauth/auth_test.go:256
FunctionTestExcludeReasonConstants
(t *testing.T)
internal/model/model_test.go:88
FunctionTestExcludedDirs
(t *testing.T)
internal/diff/gitignore_test.go:13
FunctionTestExcludedDoesNotChangeTerminalState
Excluded files are recorded with their reason but stay outside the denominator: complete means complete over the selected set.
internal/session/manifest_test.go:876
FunctionTestExcludedJSONShape
(t *testing.T)
internal/session/manifest_test.go:980
FunctionTestExcludedOnlyIsSkipped
A run that selected nothing is still skipped, and says what it left out.
internal/session/manifest_test.go:906
FunctionTestExeName
(t *testing.T)
acp/internal/testutil/stub_test.go:56
FunctionTestExecuteDelegatePreviewCreatesNoSession
TestExecuteDelegatePreviewCreatesNoSession covers the third preview entry point, which built its agent the same leaky way as review and scan.
cmd/opencodereview/delegate_exec_test.go:155
FunctionTestExecuteDelegatePreviewJSON
(t *testing.T)
cmd/opencodereview/delegate_exec_test.go:179
FunctionTestExecuteDelegatePreview_Commit
(t *testing.T)
cmd/opencodereview/delegate_exec_test.go:141
FunctionTestExecuteDelegatePreview_Range
(t *testing.T)
cmd/opencodereview/delegate_exec_test.go:130
FunctionTestExecuteDelegatePreview_Workspace
(t *testing.T)
cmd/opencodereview/delegate_exec_test.go:117
FunctionTestExecuteDelegateRule
(t *testing.T)
cmd/opencodereview/delegate_exec_test.go:169
FunctionTestExecuteDelegateRuleJSON
(t *testing.T)
cmd/opencodereview/delegate_exec_test.go:204
FunctionTestExecuteGroupPlanPhase
(t *testing.T)
internal/agent/coverage_test.go:586
FunctionTestExecuteGroupPlanPhase_Identity
TestExecuteGroupPlanPhase_Identity checks the plan request carries the identity of the record executeGroupPlanPhase created for it. The empty-provider
internal/agent/retry_identity_test.go:58
FunctionTestExecuteGroupPlanPhase_LLMError
(t *testing.T)
internal/agent/coverage_test.go:714
FunctionTestExecuteReviewFilter_Identity
TestExecuteReviewFilter_Identity is the review-filter counterpart. The filter only runs when comments exist for the file, so one is seeded first.
internal/agent/retry_identity_test.go:122
FunctionTestExecuteReviewFilter_LLMError
(t *testing.T)
internal/agent/coverage_test.go:368
FunctionTestExecuteReviewFilter_NoComments
(t *testing.T)
internal/agent/coverage_test.go:233
FunctionTestExecuteReviewFilter_NoFilterTask
(t *testing.T)
internal/agent/coverage_test.go:211
FunctionTestExecuteReviewFilter_OmitsToolChoiceAndFailsOpenWithoutToolCall
(t *testing.T)
internal/agent/coverage_test.go:276
FunctionTestExecuteReviewFilter_RemovesComments
(t *testing.T)
internal/agent/coverage_test.go:313
FunctionTestExecuteReviewFilter_SkipFilter
(t *testing.T)
internal/agent/coverage_test.go:402
FunctionTestExecuteReviewFilter_WithTimeout
(t *testing.T)
internal/agent/coverage_test.go:919
FunctionTestExecuteScanPromptOverflowCannotReportClean
(t *testing.T)
cmd/opencodereview/scan_prompt_overflow_test.go:16
FunctionTestExecuteScanRejectsFileReadDiff
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:21
FunctionTestExecuteSubtask_ContextCancelled
(t *testing.T)
internal/scan/coverage_test.go:636
FunctionTestExecuteSubtask_ContextCancelled
(t *testing.T)
internal/agent/coverage_test.go:889
FunctionTestExecuteSubtask_EmptyMainTask
(t *testing.T)
internal/agent/coverage_test.go:741
FunctionTestExecuteSubtask_Success
(t *testing.T)
internal/scan/coverage_test.go:534
← previousnext →4,001–4,100 of 7,484, ranked by callers