MCPcopy Create free account

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

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

FunctionTestEmitRunResult_JSONIncludesSessionID
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:582
FunctionTestEmitRunResult_JSONIncludesToolFailureArguments
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:116
FunctionTestEmitRunResult_JSONLLMIdentityNamedProvider
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:146
FunctionTestEmitRunResult_JSONLLMIdentityOmitsUnknownProvider
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:163
FunctionTestEmitRunResult_JSONManifestMatchesPersistedSessionEnd
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:238
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:95
FunctionTestEmitRunResult_JSONNoFilesTraceID
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:554
FunctionTestEmitRunResult_JSONOmitsRetryReportWhenNil
A run with nothing to report must emit exactly the pre-#368 JSON shape.
cmd/opencodereview/emit_run_result_test.go:628
FunctionTestEmitRunResult_JSONSkippedIncludesManifest
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:219
FunctionTestEmitRunResult_JSONTraceIDFromContext
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:524
FunctionTestEmitRunResult_JSONUsesManifestTerminalState
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:183
FunctionTestEmitRunResult_JSONWithComments
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:329
FunctionTestEmitRunResult_JSONWithResumeInfo
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:357
FunctionTestEmitRunResult_NilQuietHandle
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:513
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:408
FunctionTestEmitRunResult_TextDoesNotPrintSuccessfulSessionHint
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:428
FunctionTestEmitRunResult_TextNoComments
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:383
FunctionTestEmitRunResult_TextOmitsReportWhenNil
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:666
FunctionTestEmitRunResult_TextPartialNeverLooksGood
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:396
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:642
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:742
FunctionTestEmitRunResult_TextWithComments
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:441
FunctionTestEmitRunResult_TextWithProjectSummary
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:458
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:1607
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
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:12
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:626
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:524
FunctionTestExecuteSubtask_TokenThresholdExceeded
(t *testing.T)
internal/agent/coverage_test.go:772
FunctionTestExecuteSubtask_WithPlan
(t *testing.T)
internal/scan/coverage_test.go:571
FunctionTestExecuteSubtask_WithPlanPhase
(t *testing.T)
internal/agent/coverage_test.go:822
FunctionTestExecuteToolCall_ArgumentsEdgeCases
(t *testing.T)
internal/reviewtask/loop_test.go:502
FunctionTestExecuteToolCall_CodeCommentAsyncPool
TestExecuteToolCall_CodeCommentAsyncPool covers the async dispatch path where a CommentWorkerPool is present: the call returns immediately with a succ
internal/reviewtask/loop_execute_more_test.go:247
FunctionTestExecuteToolCall_CodeCommentDiffResolved
TestExecuteToolCall_CodeCommentDiffResolved covers the synchronous code_comment path where DiffLookup returns a diff and ResolveComment resolves the l
internal/reviewtask/loop_execute_more_test.go:289
FunctionTestExecuteToolCall_CodeCommentNoReasoning
TestExecuteToolCall_CodeCommentNoReasoning verifies comments keep an empty thinking when the turn has no reasoning content.
internal/reviewtask/loop_execute_more_test.go:370
FunctionTestExecuteToolCall_CodeCommentRepairedArgsWarns
The model gets a plain success, so the run warning is the only record that its `comments` violated the array schema.
internal/reviewtask/loop_test.go:1063
← previousnext →3,801–3,900 of 7,169, ranked by callers