MCPcopy Create free account

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

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

FunctionTestResumedFromSession
TestResumedFromSession covers the nil and non-nil resume-state branches.
internal/scan/getters_more_test.go:78
FunctionTestRetryAttemptChain_CancelledAttemptNotDuplicated
(t *testing.T)
cmd/opencodereview/retry_report_render_test.go:202
FunctionTestRetryAttemptChain_NoStatusCode
An attempt with no HTTP response has no status code to show, so the class is rendered bare rather than as "network(0)".
cmd/opencodereview/retry_report_render_test.go:217
FunctionTestRetryCodesMiddleware_Nil
(t *testing.T)
internal/llm/client_test.go:2087
FunctionTestRetryCodesMiddleware_NoHeaderForNonMatchingCode
(t *testing.T)
internal/llm/client_test.go:2118
FunctionTestRetryCodesMiddleware_PassthroughError
(t *testing.T)
internal/llm/client_test.go:2138
FunctionTestRetryCodesMiddleware_SetsHeader
(t *testing.T)
internal/llm/client_test.go:2098
FunctionTestRetryCollectorConcurrentUse
(t *testing.T)
internal/llm/retry_report_test.go:868
FunctionTestRetryReportHasNoUnexpectedTextFields
The security guarantee is structural rather than filter-based: the report has no free-text field, so there is nothing to redact. This test pins the ex
internal/llm/retry_report_test.go:833
FunctionTestRetryReportJSON_EmptyProviderKept
provider is required and must survive as an empty string: an OCR_LLM_* endpoint has no provider name, and omitting the key there would make an unnamed
cmd/opencodereview/retry_report_render_test.go:328
FunctionTestRetryReportJSON_KeySetIsAllowlisted
The report carries only aggregates, stable classes, status codes and request identity. This pins the emitted JSON key set so a future field cannot qui
cmd/opencodereview/retry_report_render_test.go:269
FunctionTestRetryReport_TerminalAndJSONReadSameFrozenResult
Both exits read the same frozen value, so a single collector Freeze must render identically through the terminal and the JSON output. Built through th
cmd/opencodereview/retry_report_render_test.go:342
FunctionTestReusableItem_ManifestFailureIsNotReusable
--- ResumeState.ReusableItem --- The manifest settles coverage per item, and only completed and reused are settled as results worth carrying forward.
internal/session/resume_test.go:121
FunctionTestReviewE2E_AllFilesFailPublishesReportOnce
Every file failing still produces a manifest (terminal_state=failed), so the normal exit runs and the failure-usage record must not repeat the report.
cmd/opencodereview/retry_report_e2e_test.go:260
FunctionTestReviewE2E_AllFilesFailTextPublishesReportOnce
(t *testing.T)
cmd/opencodereview/retry_report_e2e_test.go:291
FunctionTestReviewE2E_CleanRunEmitsNoRetryReport
(t *testing.T)
cmd/opencodereview/retry_report_e2e_test.go:90
FunctionTestReviewE2E_FreezeErrorIsAWarning
A report-construction error is an observability warning. It must not change a successful review's exit status, print a --resume hint, emit a failure-u
cmd/opencodereview/retry_report_e2e_test.go:316
FunctionTestReviewE2E_JSONAgentStaysSilent
TestReviewE2E_JSONAgentStaysSilent is the counterpart: audience=agent asked for no progress, so the stderr redirect must not resurrect it.
cmd/opencodereview/progress_stream_e2e_test.go:63
FunctionTestReviewE2E_JSONForcedColorOnlyStylesProgress
(test *testing.T)
cmd/opencodereview/progress_stream_e2e_test.go:82
FunctionTestReviewE2E_JSONHumanStreamsProgressToStderr
(t *testing.T)
cmd/opencodereview/progress_stream_e2e_test.go:35
FunctionTestReviewE2E_LocalBudgetGraceFailureKeepsSuccessfulExit
(t *testing.T)
cmd/opencodereview/retry_report_e2e_test.go:43
FunctionTestReviewE2E_RecoveredAndFailedReachesJSONExit
(t *testing.T)
cmd/opencodereview/retry_report_e2e_test.go:106
FunctionTestReviewE2E_ReportSurvivesSessionPersistenceFailure
The run_id is the session's in-memory UUID rather than the persistence-gated ag.SessionID(), so a session whose JSONL file could not be created still
cmd/opencodereview/retry_report_e2e_test.go:356
FunctionTestReviewE2E_RetryReportReachesTextExit
(t *testing.T)
cmd/opencodereview/retry_report_e2e_test.go:220
FunctionTestReviewExecutionEquivalence
(t *testing.T)
internal/reviewtask/equivalence_test.go:33
FunctionTestReviewFromWithoutToUsesHEADRangeE2E
TestReviewFromWithoutToUsesHEADRangeE2E pins the CLI shorthand end to end: --from main must behave exactly like --from main --to HEAD, review committe
cmd/opencodereview/default_to_head_e2e_test.go:85
FunctionTestReviewHelpMentionsFlagConstraints
(t *testing.T)
cmd/opencodereview/timeout_help_test.go:35
FunctionTestReviewItemFingerprintIgnoresTrailingLineEndings
(t *testing.T)
internal/agent/agent_test.go:676
FunctionTestReviewItemFingerprintStableAcrossPatchPosition
TestReviewItemFingerprintStableAcrossPatchPosition pins down the --resume guarantee end to end: the patch splitter leaves position-dependent trailing
internal/agent/agent_test.go:709
FunctionTestReviewItemResumeRoundTrip
(t *testing.T)
internal/session/persist_test.go:420
FunctionTestReviewLoopPreservesDiffAndComparisonReads
(t *testing.T)
cmd/opencodereview/code_access_test.go:104
FunctionTestReviewModeFromOptions
(t *testing.T)
cmd/opencodereview/misc_helpers_test.go:13
FunctionTestReviewModeString
(t *testing.T)
internal/agent/util_test.go:182
FunctionTestReviewMode_RefValue
(t *testing.T)
internal/tool/filereader_test.go:55
FunctionTestReviewOutputCommittedBeforeMCPShutdown
(t *testing.T)
cmd/opencodereview/review_output_order_test.go:15
FunctionTestReviewRejectsNonRepositoryBeforeRunner
(t *testing.T)
acp/internal/adapter/locations_test.go:143
FunctionTestReviewResultErrorUsesManifestTerminalState
(t *testing.T)
cmd/opencodereview/review_cmd_test.go:93
FunctionTestReviewRulesGuideListsEverySystemRulePattern
TestReviewRulesGuideListsEverySystemRulePattern keeps the review-rules guide's pattern table in step with the embedded mapping it documents. The tabl
internal/config/rules/rule_docs_table_test.go:132
FunctionTestReviewRulesGuideListsPatternsInMatchingOrder
TestReviewRulesGuideListsPatternsInMatchingOrder holds the guide to the claim it makes about itself. The table is introduced as listing every pattern
internal/config/rules/rule_docs_table_test.go:206
FunctionTestReviewRulesListedPatterns
(t *testing.T)
internal/config/rules/rule_docs_table_test.go:52
FunctionTestReviewWithAnalysisCancellationAfterReview
(test *testing.T)
cmd/opencodereview/analysis_test.go:626
FunctionTestReviewWithAnalysisHTTP
(test *testing.T)
cmd/opencodereview/analysis_test.go:256
FunctionTestReviewedPaths
TestReviewedPaths pins the partition choice the CLI and the web viewer share. The nil-vs-empty distinction is asserted explicitly: reflect.DeepEqual(n
internal/session/compare_test.go:350
FunctionTestReviseLastAttempt
(t *testing.T)
internal/llm/retry_report_test.go:414
FunctionTestRollbackCfgActiveModel
(t *testing.T)
cmd/opencodereview/provider_tui_rollback_test.go:70
FunctionTestRollbackModelDelete
(t *testing.T)
cmd/opencodereview/provider_tui_rollback_test.go:85
FunctionTestRootAndMissingComparison
(test *testing.T)
internal/behaviortask/runner_test.go:292
FunctionTestRootCmd_Help
(t *testing.T)
cmd/opencodereview/smallfiles_test.go:135
FunctionTestRuleConfigSHA256
(t *testing.T)
internal/agent/manifest_hash_test.go:38
FunctionTestRuleConfigSHA256_NilResolverAndFilter
(t *testing.T)
internal/agent/manifest_hash_test.go:81
FunctionTestRuleGroupsJSONEmptyFiles
(t *testing.T)
cmd/opencodereview/delegate_exec_test.go:223
FunctionTestRuleGroupsMarkdown
(t *testing.T)
internal/delegate/format_test.go:11
FunctionTestRunBrowserCmd_ExitZero
(t *testing.T)
internal/viewer/browser_exec_test.go:131
FunctionTestRunBrowserCmd_LateFailureWarns
TestRunBrowserCmd_LateFailureWarns covers the watcher goroutine: an opener that outlives the wait window is reported as success, but if it then fails
internal/viewer/browser_exec_test.go:221
FunctionTestRunBrowserCmd_NonZeroExit
TestRunBrowserCmd_NonZeroExit is the regression test for openers that fork successfully and then fail: xdg-open exits non-zero when no handler is regi
internal/viewer/browser_exec_test.go:143
FunctionTestRunBrowserCmd_NonZeroExitIncludesStderr
TestRunBrowserCmd_NonZeroExitIncludesStderr checks that the opener's own diagnostic survives. Without it a failure reduces to "exit status 3", which d
internal/viewer/browser_exec_test.go:161
FunctionTestRunBrowserCmd_PreservesCallerStderr
TestRunBrowserCmd_PreservesCallerStderr makes sure the capture does not hijack a Stderr the caller already set.
internal/viewer/browser_exec_test.go:179
FunctionTestRunBrowserCmd_StartFailure
(t *testing.T)
internal/viewer/browser_exec_test.go:192
FunctionTestRunBrowserCmd_StillRunningIsSuccess
TestRunBrowserCmd_StillRunningIsSuccess covers the opener that becomes the browser and never exits: past the wait window it must be reported as succes
internal/viewer/browser_exec_test.go:201
FunctionTestRunCancellation
(test *testing.T)
internal/workflow/workflow_test.go:67
FunctionTestRunCompression_EmptySummary
(t *testing.T)
internal/llmloop/runner_test.go:433
FunctionTestRunCompression_EmptyTemplate
(t *testing.T)
internal/llmloop/runner_test.go:319
FunctionTestRunCompression_Identity
TestRunCompression_Identity covers both compression paths at once: the synchronous one is this call, and the async one reaches the same function throu
internal/llmloop/retry_identity_test.go:118
FunctionTestRunCompression_LLMError
(t *testing.T)
internal/llmloop/runner_test.go:402
FunctionTestRunCompression_NoIdentityWhenFactoryNil
(t *testing.T)
internal/llmloop/retry_identity_test.go:142
FunctionTestRunCompression_ShortMessages
(t *testing.T)
internal/llmloop/runner_test.go:339
FunctionTestRunCompression_Success
(t *testing.T)
internal/llmloop/runner_test.go:359
FunctionTestRunConfigSetPersists
TestRunConfigSetPersists drives runConfigSet end-to-end (HOME points at a temp dir) covering the success path and the API-key masking branch.
cmd/opencodereview/config_runset_test.go:13
FunctionTestRunConfigSetProviderNames
(t *testing.T)
cmd/opencodereview/main_test.go:14
FunctionTestRunConfigSetWarnsWhenActiveProviderShadowsLegacyLLMConfig
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1400
FunctionTestRunConfigUnsetPaths
TestRunConfigUnsetPaths drives runConfigUnset across its dispatch branches.
cmd/opencodereview/config_runset_test.go:60
FunctionTestRunConfigUnsetProviderClearsSelectionAndKeepsProviderEntries
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1449
FunctionTestRunConfigUnset_InvalidKey
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1394
FunctionTestRunConfigUnset_UnknownPrefix
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1091
FunctionTestRunConfig_EmptyArgs
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1514
FunctionTestRunConfig_InvalidSetMissingValue
(t *testing.T)
cmd/opencodereview/config_dispatch_test.go:21
FunctionTestRunConfig_InvalidUnsetMissingKey
(t *testing.T)
cmd/opencodereview/config_dispatch_test.go:28
FunctionTestRunConfig_ModelWithArgs
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1528
FunctionTestRunConfig_ProviderWithArgs
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1521
FunctionTestRunConfig_UnknownSubcommand
(t *testing.T)
cmd/opencodereview/config_dispatch_test.go:11
FunctionTestRunFailureForcesFailed
A run-level failure forces the terminal state to failed regardless of coverage, while any recorded per-item outcomes are preserved.
internal/session/manifest_test.go:104
FunctionTestRunFailureOutranksPendingFailureCause
A real run-level failure outranks a pending cause in the sweep: the run did fail, so its class colors the undecided items and forces terminal failed e
internal/session/manifest_test.go:228
FunctionTestRunFailureSweepsPendingToMatchingClass
A run_failure sweeps still-selected items into failed with the item class that matches the run stop cause; the terminal state is failed and prior outc
internal/session/manifest_test.go:138
FunctionTestRunFlushesTelemetryOnError
(t *testing.T)
cmd/opencodereview/main_test.go:101
FunctionTestRunGitCmd_Failure
(t *testing.T)
cmd/opencodereview/git_test.go:57
FunctionTestRunGitCmd_Success
(t *testing.T)
cmd/opencodereview/git_test.go:46
FunctionTestRunIsolationAndJoin
(test *testing.T)
internal/workflow/workflow_test.go:33
FunctionTestRunLLMProviders
(t *testing.T)
cmd/opencodereview/smallfiles_test.go:126
FunctionTestRunMainTaskMCPAndGraceAvailability
(t *testing.T)
internal/reviewtask/tool_availability_test.go:93
FunctionTestRunMainTaskRejectsUnadvertisedTools
(t *testing.T)
internal/reviewtask/tool_availability_test.go:42
FunctionTestRunMainTask_BackfillsThinkingFromReasoningContent
TestRunMainTask_BackfillsThinkingFromReasoningContent verifies the full wiring: the model's native reasoning_content on a tool-calling turn is backfil
internal/reviewtask/loop_execute_more_test.go:82
FunctionTestRunMainTask_ConcurrentFilesCompression_Race
(t *testing.T)
internal/llmloop/runner_test.go:668
FunctionTestRunMainTask_ContextCancelled
(t *testing.T)
internal/reviewtask/loop_test.go:301
FunctionTestRunMainTask_DoesNotDuplicateReasoningIntoVisibleContent
TestRunMainTask_DoesNotDuplicateReasoningIntoVisibleContent is a regression test found in review of the #805 fix: ChatResponse.Content() falls back to
internal/reviewtask/loop_execute_more_test.go:134
FunctionTestRunMainTask_EmptyToolResultsStopWithEmptyRounds
(t *testing.T)
internal/reviewtask/loop_test.go:379
FunctionTestRunMainTask_GraceRoundCompletionStates
(t *testing.T)
internal/reviewtask/loop_test.go:891
FunctionTestRunMainTask_GraceRoundIsAMainTaskRound
TestRunMainTask_GraceRoundIsAMainTaskRound verifies that the grace round uses the next main_task identity and records both responses and errors.
internal/reviewtask/retry_identity_test.go:157
FunctionTestRunMainTask_GraceRoundNotTriggeredOnEmptyRoundsStop
(t *testing.T)
internal/reviewtask/loop_test.go:1024
FunctionTestRunMainTask_GraceRoundSkippedWhenContextCancelled
(t *testing.T)
internal/reviewtask/loop_test.go:971
FunctionTestRunMainTask_GraceRoundSubmitsComment
(t *testing.T)
internal/reviewtask/loop_test.go:717
← previousnext →5,801–5,900 of 7,484, ranked by callers