MCPcopy Create free account

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

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

FunctionTestDiscoverRepos_SkipsUnreadableSubdir
(t *testing.T)
internal/viewer/store_load_test.go:582
FunctionTestDiscoveryAndJWKSFailures
(t *testing.T)
internal/chatgptauth/lifecycle_test.go:223
FunctionTestDiscoveryWriterFailureAndDuplicateBoundaries
(t *testing.T)
acp/internal/adapter/transport/discovery_test.go:36
FunctionTestDispatchSubtasks_AllDeleted
(t *testing.T)
internal/agent/agent_test.go:1276
FunctionTestDispatchSubtasks_AllFailed
(t *testing.T)
internal/scan/coverage_test.go:911
FunctionTestDispatchSubtasks_AllFailed
(t *testing.T)
internal/agent/coverage_test.go:995
FunctionTestDispatchSubtasks_AllFilteredBySize
(t *testing.T)
internal/agent/coverage_test.go:967
FunctionTestDispatchSubtasks_GraceRoundLimitVisibleWithZeroFindings
The same completion, but with zero findings and nothing after the file, is the case where the limit would otherwise vanish entirely: no scan_subtask_e
internal/scan/coverage_test.go:1081
FunctionTestDispatchSubtasks_GraceRoundMixedTaskDoneNotCheckpointed
(t *testing.T)
internal/scan/coverage_test.go:1200
FunctionTestDispatchSubtasks_GraceRoundTaskDoneCheckpointed
A file whose tool budget runs out mid-review but which the model then marks done in the grace round must be checkpointed as completed. Treating it as
internal/scan/coverage_test.go:999
FunctionTestDispatchSubtasks_IncompleteMainTaskMarksPartialFailure
(t *testing.T)
internal/agent/agent_test.go:1230
FunctionTestDispatchSubtasks_MainTaskWithoutTaskDoneIsNotReusableCheckpoint
(t *testing.T)
internal/agent/agent_test.go:1147
FunctionTestDispatchSubtasks_PersistsDedupedCommentsForResume
(t *testing.T)
internal/scan/coverage_test.go:1401
FunctionTestDispatchSubtasks_PreservesMixedDedupCheckpointProvenance
(t *testing.T)
internal/scan/coverage_test.go:1599
FunctionTestDispatchSubtasks_PreservesReusedCheckpointAfterDedup
(t *testing.T)
internal/scan/coverage_test.go:1521
FunctionTestDispatchSubtasks_ResumeMultiBatchAndChained
(t *testing.T)
internal/scan/coverage_test.go:1730
FunctionTestDispatchSubtasks_ResumeRerunsChangedContent
(t *testing.T)
internal/scan/coverage_test.go:1679
FunctionTestDispatchSubtasks_ResumeSkipsCompletedFiles
(t *testing.T)
internal/scan/coverage_test.go:838
FunctionTestDispatchSubtasks_TokenBudgetBeforeFirstFileIsFailed
TestDispatchSubtasks_TokenBudgetBeforeFirstFileIsFailed pins the other side of the exit-code boundary: when the budget is too small to admit even the
internal/agent/budget_test.go:182
FunctionTestDispatchSubtasks_TokenBudgetSkipsNextRoundAfterCompletedRound
TestDispatchSubtasks_TokenBudgetSkipsNextRoundAfterCompletedRound covers the round gate rather than the in-conversation check: a group whose round 1 e
internal/agent/budget_test.go:423
FunctionTestDispatchSubtasks_TokenBudgetStopsDispatch
TestDispatchSubtasks_TokenBudgetStopsDispatch verifies the per-file gate stops dispatch once the running token total + next-file look-ahead would blow
internal/agent/budget_test.go:87
FunctionTestDispatchSubtasks_TokenBudgetStopsInFlightGroup
TestDispatchSubtasks_TokenBudgetStopsInFlightGroup pins the gap the dispatch look-ahead cannot close: a group admitted while usage is still low can ou
internal/agent/budget_test.go:317
FunctionTestDispatchSubtasks_TokenThresholdSkipIsNotReusableCheckpoint
(t *testing.T)
internal/agent/agent_test.go:1079
FunctionTestDispatchSubtasks_UnlimitedBudget
TestDispatchSubtasks_UnlimitedBudget verifies MaxTokensBudget=0 runs every file (default behavior unchanged — regression guard).
internal/agent/budget_test.go:247
FunctionTestDispatchSubtasks_WithFakeLLM
(t *testing.T)
internal/agent/agent_test.go:1029
FunctionTestDispatchSubtasks_WithoutTaskDoneIsAllFailed
(t *testing.T)
internal/scan/coverage_test.go:941
FunctionTestDisplayAddr
(t *testing.T)
internal/viewer/hostguard_test.go:166
FunctionTestDisplayMode
TestDisplayMode covers the empty and non-empty branches.
cmd/opencodereview/session_display_more_test.go:13
FunctionTestDisplayURL
TestDisplayURL pins the host to the *requested* address and the port to the listener. Deriving the host from the listener instead makes the printed UR
internal/viewer/server_startserver_test.go:48
FunctionTestDisplayURL_AgreesWithHostGuard
TestDisplayURL_AgreesWithHostGuard is the regression test for the auto-open path: whatever URL we print and hand to the browser must survive the viewe
internal/viewer/server_startserver_test.go:90
FunctionTestDuplicateRegistrationIgnored
Duplicate registration keeps the first entry and is not an error.
internal/session/manifest_test.go:422
FunctionTestDynamic
(t *testing.T)
internal/tool/definitions_test.go:110
FunctionTestDynamic_PanicsOnEmpty
(t *testing.T)
internal/tool/definitions_test.go:117
FunctionTestDynamic_PanicsOnReserved
(t *testing.T)
internal/tool/definitions_test.go:126
FunctionTestEffectivePath
(t *testing.T)
internal/agent/preview_test.go:588
FunctionTestEffortPreset_UnknownFallsToDefault
(t *testing.T)
internal/config/template/effort_test.go:61
FunctionTestEmbeddedAssetsHaveNoTerminators
TestEmbeddedAssetsHaveNoTerminators is the static half of the inlining contract. template.CSS and template.JS pass their contents through unescaped, s
internal/viewer/export_test.go:176
FunctionTestEmitFailureUsage_BudgetExceededPropagated
TestEmitFailureUsage_BudgetExceededPropagated closes the residual edge the OCR review flagged: a budget gate can trip after dispatching N files, and i
cmd/opencodereview/budget_output_test.go:245
FunctionTestEmitFailureUsage_JSONCarriesRetryReport
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:734
FunctionTestEmitFailureUsage_JSONEmitsStructuredRecord
TestEmitFailureUsage_JSONEmitsStructuredRecord verifies the JSON form emits a parseable record to stderr with budget_exceeded=false.
cmd/opencodereview/budget_output_test.go:187
FunctionTestEmitFailureUsage_NilReportUnchanged
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:763
FunctionTestEmitFailureUsage_TextCarriesRetryReport
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:751
FunctionTestEmitFailureUsage_TextEmitsStructuredRecord
TestEmitFailureUsage_TextEmitsStructuredRecord verifies the non-budget failure path emits a structured usage record to stderr with the token totals an
cmd/opencodereview/budget_output_test.go:149
FunctionTestEmitFailureUsage_TextOmitsZeroToolFailures
(t *testing.T)
cmd/opencodereview/budget_output_test.go:172
FunctionTestEmitRunResult_AgentJSONDoesNotRestore
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:526
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: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
← previousnext →3,901–4,000 of 7,390, ranked by callers