Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,484 in github.com/alibaba/open-code-review
⨍
Functions
7,484
◇
Types & classes
809
Function
TestResumedFromSession
TestResumedFromSession covers the nil and non-nil resume-state branches.
internal/scan/getters_more_test.go:78
Function
TestRetryAttemptChain_CancelledAttemptNotDuplicated
(t *testing.T)
cmd/opencodereview/retry_report_render_test.go:202
Function
TestRetryAttemptChain_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
Function
TestRetryCodesMiddleware_Nil
(t *testing.T)
internal/llm/client_test.go:2087
Function
TestRetryCodesMiddleware_NoHeaderForNonMatchingCode
(t *testing.T)
internal/llm/client_test.go:2118
Function
TestRetryCodesMiddleware_PassthroughError
(t *testing.T)
internal/llm/client_test.go:2138
Function
TestRetryCodesMiddleware_SetsHeader
(t *testing.T)
internal/llm/client_test.go:2098
Function
TestRetryCollectorConcurrentUse
(t *testing.T)
internal/llm/retry_report_test.go:868
Function
TestRetryReportHasNoUnexpectedTextFields
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
Function
TestRetryReportJSON_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
Function
TestRetryReportJSON_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
Function
TestRetryReport_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
Function
TestReusableItem_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
Function
TestReviewE2E_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
Function
TestReviewE2E_AllFilesFailTextPublishesReportOnce
(t *testing.T)
cmd/opencodereview/retry_report_e2e_test.go:291
Function
TestReviewE2E_CleanRunEmitsNoRetryReport
(t *testing.T)
cmd/opencodereview/retry_report_e2e_test.go:90
Function
TestReviewE2E_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
Function
TestReviewE2E_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
Function
TestReviewE2E_JSONForcedColorOnlyStylesProgress
(test *testing.T)
cmd/opencodereview/progress_stream_e2e_test.go:82
Function
TestReviewE2E_JSONHumanStreamsProgressToStderr
(t *testing.T)
cmd/opencodereview/progress_stream_e2e_test.go:35
Function
TestReviewE2E_LocalBudgetGraceFailureKeepsSuccessfulExit
(t *testing.T)
cmd/opencodereview/retry_report_e2e_test.go:43
Function
TestReviewE2E_RecoveredAndFailedReachesJSONExit
(t *testing.T)
cmd/opencodereview/retry_report_e2e_test.go:106
Function
TestReviewE2E_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
Function
TestReviewE2E_RetryReportReachesTextExit
(t *testing.T)
cmd/opencodereview/retry_report_e2e_test.go:220
Function
TestReviewExecutionEquivalence
(t *testing.T)
internal/reviewtask/equivalence_test.go:33
Function
TestReviewFromWithoutToUsesHEADRangeE2E
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
Function
TestReviewHelpMentionsFlagConstraints
(t *testing.T)
cmd/opencodereview/timeout_help_test.go:35
Function
TestReviewItemFingerprintIgnoresTrailingLineEndings
(t *testing.T)
internal/agent/agent_test.go:676
Function
TestReviewItemFingerprintStableAcrossPatchPosition
TestReviewItemFingerprintStableAcrossPatchPosition pins down the --resume guarantee end to end: the patch splitter leaves position-dependent trailing
internal/agent/agent_test.go:709
Function
TestReviewItemResumeRoundTrip
(t *testing.T)
internal/session/persist_test.go:420
Function
TestReviewLoopPreservesDiffAndComparisonReads
(t *testing.T)
cmd/opencodereview/code_access_test.go:104
Function
TestReviewModeFromOptions
(t *testing.T)
cmd/opencodereview/misc_helpers_test.go:13
Function
TestReviewModeString
(t *testing.T)
internal/agent/util_test.go:182
Function
TestReviewMode_RefValue
(t *testing.T)
internal/tool/filereader_test.go:55
Function
TestReviewOutputCommittedBeforeMCPShutdown
(t *testing.T)
cmd/opencodereview/review_output_order_test.go:15
Function
TestReviewRejectsNonRepositoryBeforeRunner
(t *testing.T)
acp/internal/adapter/locations_test.go:143
Function
TestReviewResultErrorUsesManifestTerminalState
(t *testing.T)
cmd/opencodereview/review_cmd_test.go:93
Function
TestReviewRulesGuideListsEverySystemRulePattern
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
Function
TestReviewRulesGuideListsPatternsInMatchingOrder
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
Function
TestReviewRulesListedPatterns
(t *testing.T)
internal/config/rules/rule_docs_table_test.go:52
Function
TestReviewWithAnalysisCancellationAfterReview
(test *testing.T)
cmd/opencodereview/analysis_test.go:626
Function
TestReviewWithAnalysisHTTP
(test *testing.T)
cmd/opencodereview/analysis_test.go:256
Function
TestReviewedPaths
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
Function
TestReviseLastAttempt
(t *testing.T)
internal/llm/retry_report_test.go:414
Function
TestRollbackCfgActiveModel
(t *testing.T)
cmd/opencodereview/provider_tui_rollback_test.go:70
Function
TestRollbackModelDelete
(t *testing.T)
cmd/opencodereview/provider_tui_rollback_test.go:85
Function
TestRootAndMissingComparison
(test *testing.T)
internal/behaviortask/runner_test.go:292
Function
TestRootCmd_Help
(t *testing.T)
cmd/opencodereview/smallfiles_test.go:135
Function
TestRuleConfigSHA256
(t *testing.T)
internal/agent/manifest_hash_test.go:38
Function
TestRuleConfigSHA256_NilResolverAndFilter
(t *testing.T)
internal/agent/manifest_hash_test.go:81
Function
TestRuleGroupsJSONEmptyFiles
(t *testing.T)
cmd/opencodereview/delegate_exec_test.go:223
Function
TestRuleGroupsMarkdown
(t *testing.T)
internal/delegate/format_test.go:11
Function
TestRunBrowserCmd_ExitZero
(t *testing.T)
internal/viewer/browser_exec_test.go:131
Function
TestRunBrowserCmd_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
Function
TestRunBrowserCmd_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
Function
TestRunBrowserCmd_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
Function
TestRunBrowserCmd_PreservesCallerStderr
TestRunBrowserCmd_PreservesCallerStderr makes sure the capture does not hijack a Stderr the caller already set.
internal/viewer/browser_exec_test.go:179
Function
TestRunBrowserCmd_StartFailure
(t *testing.T)
internal/viewer/browser_exec_test.go:192
Function
TestRunBrowserCmd_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
Function
TestRunCancellation
(test *testing.T)
internal/workflow/workflow_test.go:67
Function
TestRunCompression_EmptySummary
(t *testing.T)
internal/llmloop/runner_test.go:433
Function
TestRunCompression_EmptyTemplate
(t *testing.T)
internal/llmloop/runner_test.go:319
Function
TestRunCompression_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
Function
TestRunCompression_LLMError
(t *testing.T)
internal/llmloop/runner_test.go:402
Function
TestRunCompression_NoIdentityWhenFactoryNil
(t *testing.T)
internal/llmloop/retry_identity_test.go:142
Function
TestRunCompression_ShortMessages
(t *testing.T)
internal/llmloop/runner_test.go:339
Function
TestRunCompression_Success
(t *testing.T)
internal/llmloop/runner_test.go:359
Function
TestRunConfigSetPersists
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
Function
TestRunConfigSetProviderNames
(t *testing.T)
cmd/opencodereview/main_test.go:14
Function
TestRunConfigSetWarnsWhenActiveProviderShadowsLegacyLLMConfig
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1400
Function
TestRunConfigUnsetPaths
TestRunConfigUnsetPaths drives runConfigUnset across its dispatch branches.
cmd/opencodereview/config_runset_test.go:60
Function
TestRunConfigUnsetProviderClearsSelectionAndKeepsProviderEntries
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1449
Function
TestRunConfigUnset_InvalidKey
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1394
Function
TestRunConfigUnset_UnknownPrefix
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1091
Function
TestRunConfig_EmptyArgs
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1514
Function
TestRunConfig_InvalidSetMissingValue
(t *testing.T)
cmd/opencodereview/config_dispatch_test.go:21
Function
TestRunConfig_InvalidUnsetMissingKey
(t *testing.T)
cmd/opencodereview/config_dispatch_test.go:28
Function
TestRunConfig_ModelWithArgs
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1528
Function
TestRunConfig_ProviderWithArgs
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1521
Function
TestRunConfig_UnknownSubcommand
(t *testing.T)
cmd/opencodereview/config_dispatch_test.go:11
Function
TestRunFailureForcesFailed
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
Function
TestRunFailureOutranksPendingFailureCause
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
Function
TestRunFailureSweepsPendingToMatchingClass
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
Function
TestRunFlushesTelemetryOnError
(t *testing.T)
cmd/opencodereview/main_test.go:101
Function
TestRunGitCmd_Failure
(t *testing.T)
cmd/opencodereview/git_test.go:57
Function
TestRunGitCmd_Success
(t *testing.T)
cmd/opencodereview/git_test.go:46
Function
TestRunIsolationAndJoin
(test *testing.T)
internal/workflow/workflow_test.go:33
Function
TestRunLLMProviders
(t *testing.T)
cmd/opencodereview/smallfiles_test.go:126
Function
TestRunMainTaskMCPAndGraceAvailability
(t *testing.T)
internal/reviewtask/tool_availability_test.go:93
Function
TestRunMainTaskRejectsUnadvertisedTools
(t *testing.T)
internal/reviewtask/tool_availability_test.go:42
Function
TestRunMainTask_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
Function
TestRunMainTask_ConcurrentFilesCompression_Race
(t *testing.T)
internal/llmloop/runner_test.go:668
Function
TestRunMainTask_ContextCancelled
(t *testing.T)
internal/reviewtask/loop_test.go:301
Function
TestRunMainTask_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
Function
TestRunMainTask_EmptyToolResultsStopWithEmptyRounds
(t *testing.T)
internal/reviewtask/loop_test.go:379
Function
TestRunMainTask_GraceRoundCompletionStates
(t *testing.T)
internal/reviewtask/loop_test.go:891
Function
TestRunMainTask_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
Function
TestRunMainTask_GraceRoundNotTriggeredOnEmptyRoundsStop
(t *testing.T)
internal/reviewtask/loop_test.go:1024
Function
TestRunMainTask_GraceRoundSkippedWhenContextCancelled
(t *testing.T)
internal/reviewtask/loop_test.go:971
Function
TestRunMainTask_GraceRoundSubmitsComment
(t *testing.T)
internal/reviewtask/loop_test.go:717
← previous
next →
5,801–5,900 of 7,484, ranked by callers