Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,169 in github.com/alibaba/open-code-review
⨍
Functions
7,169
◇
Types & classes
774
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:1341
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:1390
Function
TestRunConfigUnset_InvalidKey
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1335
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:1455
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:1469
Function
TestRunConfig_ProviderWithArgs
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1462
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
TestRunLLMProviders
(t *testing.T)
cmd/opencodereview/smallfiles_test.go:120
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
Function
TestRunMainTask_GraceRoundTaskDoneCompletes
The grace round is still a main-task round, so a task_done it carries is the model declaring the subtask finished. Discarding it recorded a file the m
internal/reviewtask/loop_test.go:788
Function
TestRunMainTask_GraceRoundTaskDoneFailedStaysIncomplete
Only task_done DONE reports completion, exactly as in the main loop. A FAILED verdict in the grace round leaves the subtask incomplete.
internal/reviewtask/loop_test.go:865
Function
TestRunMainTask_InvalidTaskDoneStateRetries
(t *testing.T)
internal/reviewtask/loop_test.go:211
Function
TestRunMainTask_MainTaskIdentity
TestRunMainTask_MainTaskIdentity checks that every main_task round carries the identity of the TaskRecord created for it, including the per-round Requ
internal/reviewtask/retry_identity_test.go:99
Function
TestRunMainTask_MaxToolRequestsWithoutTaskDoneDoesNotComplete
(t *testing.T)
internal/reviewtask/loop_test.go:355
Function
TestRunMainTask_NoFallbackToContent
TestRunMainTask_NoFallbackToContent is a regression test: when a turn has assistant content but no reasoning_content, the comment thinking must stay e
internal/reviewtask/loop_execute_more_test.go:106
Function
TestRunMainTask_NoIdentityWhenFactoryNil
TestRunMainTask_NoIdentityWhenFactoryNil is the scan guarantee: the Runner is shared, and with NewRequestMeta left nil no request may carry identity.
internal/reviewtask/retry_identity_test.go:248
Function
TestRunMainTask_TagsRequestsWithTaskSessionKey
(t *testing.T)
internal/reviewtask/loop_test.go:248
Function
TestRunMainTask_TaskDoneExplicitDone
(t *testing.T)
internal/reviewtask/loop_test.go:170
Function
TestRunMainTask_TaskDoneFailed
(t *testing.T)
internal/reviewtask/loop_test.go:189
Function
TestRunMainTask_TaskDoneImmediately
(t *testing.T)
internal/reviewtask/loop_test.go:126
Function
TestRunMainTask_TokenBudgetGraceRoundTaskDoneCompletes
The aggregate token budget is the other declared limit that earns a grace round, and a task it completes must stay warn-visible the same way.
internal/reviewtask/loop_test.go:826
Function
TestRunMainTask_TokenBudgetStopsBeforeNextRound
TestRunMainTask_TokenBudgetStopsBeforeNextRound pins the in-conversation budget check: once the Runner's aggregate usage is over Deps.MaxTokensBudget
internal/reviewtask/loop_test.go:1172
Function
TestRunMainTask_ToolCallThenDone
(t *testing.T)
internal/reviewtask/loop_test.go:272
Function
TestRunMainTask_UncompressibleContextStopsWithCompression
(t *testing.T)
internal/reviewtask/loop_test.go:407
Function
TestRunMainTask_UnknownTool
(t *testing.T)
internal/reviewtask/loop_test.go:319
Function
TestRunMainTask_UsesCompletionTokenLimit
(t *testing.T)
internal/reviewtask/loop_test.go:150
Function
TestRunMainTask_ZeroTokenBudgetNeverStops
TestRunMainTask_ZeroTokenBudgetNeverStops guards the default: callers that never set a budget keep the pre-existing round-only behaviour.
internal/reviewtask/loop_test.go:1218
Function
TestRunPipelineSpansDoNotParentToDiffParse
TestRunPipelineSpansDoNotParentToDiffParse guards the trace hierarchy fix for #1710: after diff.parse ends, the review pipeline (group subtasks, main
internal/agent/trace_parent_test.go:113
Function
TestRunPreview
(t *testing.T)
cmd/opencodereview/review_helpers_test.go:24
Function
TestRunPreviewAppliesResolvedMaxTokens
TestRunPreviewAppliesResolvedMaxTokens pins that the preview path resolves the per-file token ceiling and hands it to selection: without it the templa
cmd/opencodereview/review_helpers_test.go:118
Function
TestRunPreviewCreatesNoSession
TestRunPreviewCreatesNoSession pins that previewing never opens session persistence. Building the agent with agent.New auto-created a session, which l
cmd/opencodereview/review_helpers_test.go:255
Function
TestRunPreviewJSONFormat
(t *testing.T)
cmd/opencodereview/review_helpers_test.go:39
Function
TestRunPreviewJSON_ProviderDirectoryKeepsChangesetOrder
TestRunPreviewJSON_ProviderDirectoryKeepsChangesetOrder pins issue #1236: JSON files from the CLI preview path include provider-directory entries in G
cmd/opencodereview/review_helpers_test.go:73
Function
TestRunReviewFlagValidationWritesNoArtifacts
A review that fails flag validation must exit before any session is created, so nothing is persisted under $HOME/.opencodereview (scenario 5: no artif
cmd/opencodereview/review_cmd_test.go:213
Function
TestRunRulesCheck
TestRunRulesCheck drives the full `ocr rules check` helper against a real git repo so the resolver-build, DetailResolver assertion, and formatted prin
cmd/opencodereview/rules_check_test.go:13
Function
TestRunRulesCheck_BlankOnlyFileFallsBackToPathOnlyMatch
TestRunRulesCheck_BlankOnlyFileFallsBackToPathOnlyMatch covers peekFirstLine's other empty-result path: the file exists but has no non-blank line to s
cmd/opencodereview/rules_cmd_test.go:124
Function
TestRunRulesCheck_MatlabFileStaysMatlab
TestRunRulesCheck_MatlabFileStaysMatlab is the control case: a genuine MATLAB file (function header, no ObjC signals) must still resolve via the plain
cmd/opencodereview/rules_cmd_test.go:84
Function
TestRunRulesCheck_MissingFileFallsBackToPathOnlyMatch
TestRunRulesCheck_MissingFileFallsBackToPathOnlyMatch covers peekFirstLine's error path: a file path that doesn't exist on disk (e.g. checking a rule
cmd/opencodereview/rules_cmd_test.go:105
Function
TestRunRulesCheck_ObjCSniffOverridesMatlab
TestRunRulesCheck_ObjCSniffOverridesMatlab exercises peekFirstLine's actual disk-read path: system_rules.json maps "**/*.m" to matlab.md, but an Objec
cmd/opencodereview/rules_cmd_test.go:58
Function
TestRunScanPreview
(t *testing.T)
cmd/opencodereview/scan_helpers_test.go:35
Function
TestRunScanPreviewAppliesMaxTokens
(t *testing.T)
cmd/opencodereview/scan_helpers_test.go:86
Function
TestRunScanPreviewCreatesNoSession
TestRunScanPreviewCreatesNoSession mirrors TestRunPreviewCreatesNoSession: scan.NewAgent auto-creates a session too, so scan preview leaked the same u
cmd/opencodereview/scan_helpers_test.go:133
Function
TestRunScanPreviewJSONFormat
(t *testing.T)
cmd/opencodereview/scan_helpers_test.go:53
Function
TestRunSessionComments_JSON
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:366
Function
TestRunSessionComments_JSONEmptyIsArray
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:423
Function
TestRunSessionComments_NoCommentsMessage
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:445
Function
TestRunSessionComments_SeverityFilter
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:332
Function
TestRunSessionComments_TextRendersLikeReview
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:305
Function
TestRunSessionCompare_CrossRepoRefuses
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:813
Function
TestRunSessionCompare_JSONEmptyBucketsAreArrays
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:781
Function
TestRunSessionCompare_JSONShape
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:684
Function
TestRunSessionCompare_MalformedSessionID
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:884
Function
TestRunSessionCompare_MixedRepoSpellings
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:634
Function
TestRunSessionCompare_ModeMismatchWarnsNotFails
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:854
Function
TestRunSessionCompare_RenamedFileFindingPersists
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:738
Function
TestRunSessionCompare_SameSessionTwice
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:909
Function
TestRunSessionCompare_TextShowsCounts
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:593
Function
TestRunSessionCompare_UnfinishedAfterRunIsNotResolved
TestRunSessionCompare_UnfinishedAfterRunIsNotResolved pins that only the coverage partitions that carry a current verdict (completed, reused) count as
cmd/opencodereview/session_cmd_test.go:1027
Function
TestRunSessionCompare_UnreviewedFilesAreNotResolved
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:929
Function
TestRunSessionExport_DefaultsToNewest
TestRunSessionExport_DefaultsToNewest pins the no-argument form. A successful `ocr review` never prints its session id, so requiring one would push ev
cmd/opencodereview/session_cmd_test.go:1143
Function
TestRunSessionExport_Errors
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:1169
Function
TestRunSessionExport_WritesFile
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:1106
Function
TestRunSessionList_BranchFilterBeforeLimit
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:92
Function
TestRunSessionList_BranchFilterEmptyMessage
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:198
Function
TestRunSessionList_BranchFilterJSONMissingSessionsDir
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:213
Function
TestRunSessionList_EmptyRepo
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:77
Function
TestRunSessionList_JSON
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:50
Function
TestRunSessionList_JSONMissingDirPrintsEmptyArray
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:228
Function
TestRunSessionList_TextIncludesSessionID
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:21
Function
TestRunSessionShow_AmbiguousIDRequiresRepo
(t *testing.T)
cmd/opencodereview/session_show_anywhere_test.go:88
Function
TestRunSessionShow_FromAnotherDirectory
(t *testing.T)
cmd/opencodereview/session_show_anywhere_test.go:19
Function
TestRunSessionShow_JSON
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:272
← previous
next →
5,601–5,700 of 7,169, ranked by callers