MCPcopy Create free account

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

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

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:58
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:330
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:156
FunctionTestExecuteDelegatePreviewJSON
(t *testing.T)
cmd/opencodereview/delegate_exec_test.go:180
FunctionTestExecuteDelegatePreview_Commit
(t *testing.T)
cmd/opencodereview/delegate_exec_test.go:142
FunctionTestExecuteDelegatePreview_Range
(t *testing.T)
cmd/opencodereview/delegate_exec_test.go:131
FunctionTestExecuteDelegatePreview_Workspace
(t *testing.T)
cmd/opencodereview/delegate_exec_test.go:118
FunctionTestExecuteDelegateRule
(t *testing.T)
cmd/opencodereview/delegate_exec_test.go:170
FunctionTestExecuteDelegateRuleJSON
(t *testing.T)
cmd/opencodereview/delegate_exec_test.go:256
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:36
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
FunctionTestExecuteSubtask_TokenThresholdExceeded
(t *testing.T)
internal/agent/coverage_test.go:772
FunctionTestExecuteSubtask_WithPlan
(t *testing.T)
internal/scan/coverage_test.go:581
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
FunctionTestExecuteToolCall_CodeCommentSuspectRepairReportsTheError
The far side of the accept/decline decision: a refused batch must reach the model as a failure, since that error is what makes it resend. No warning e
internal/reviewtask/loop_test.go:1109
FunctionTestExecuteToolCall_CodeCommentThinkingBackfill
TestExecuteToolCall_CodeCommentThinkingBackfill covers the thinking backfill: when the current turn carries reasoning content, comments without an exp
internal/reviewtask/loop_execute_more_test.go:336
FunctionTestExecuteToolCall_CodeCommentUsesPerItemPath
(t *testing.T)
internal/reviewtask/loop_test.go:614
FunctionTestExecuteToolCall_CodeCommentValidationErrorPrintsTerminalFailure
(t *testing.T)
internal/reviewtask/loop_execute_test.go:191
FunctionTestExecuteToolCall_CodeCommentWellFormedArgsDoesNotWarn
The contrast that keeps the tests above honest: a conformant batch must warn nothing, so comment_args_repaired counts real violations only.
internal/reviewtask/loop_test.go:1142
FunctionTestExecuteToolCall_CodeCommentWithNoUsableEntryIsReported
(t *testing.T)
internal/reviewtask/loop_test.go:658
FunctionTestExecuteToolCall_DynamicExecuteError
TestExecuteToolCall_DynamicExecuteError verifies newly registered tools use the common failure-observation path without tool-specific instrumentation.
internal/reviewtask/loop_execute_test.go:50
FunctionTestExecuteToolCall_DynamicNotRegistered
TestExecuteToolCall_DynamicNotRegistered covers the path where the LLM calls a name that is neither a built-in tool nor present in the registry.
internal/reviewtask/loop_execute_test.go:34
← previousnext →4,101–4,200 of 7,619, ranked by callers