MCPcopy Create free account

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

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

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:1341
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:1390
FunctionTestRunConfigUnset_InvalidKey
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1335
FunctionTestRunConfigUnset_UnknownPrefix
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1091
FunctionTestRunConfig_EmptyArgs
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1455
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:1469
FunctionTestRunConfig_ProviderWithArgs
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1462
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
FunctionTestRunLLMProviders
(t *testing.T)
cmd/opencodereview/smallfiles_test.go:120
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
FunctionTestRunMainTask_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
FunctionTestRunMainTask_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
FunctionTestRunMainTask_InvalidTaskDoneStateRetries
(t *testing.T)
internal/reviewtask/loop_test.go:211
FunctionTestRunMainTask_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
FunctionTestRunMainTask_MaxToolRequestsWithoutTaskDoneDoesNotComplete
(t *testing.T)
internal/reviewtask/loop_test.go:355
FunctionTestRunMainTask_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
FunctionTestRunMainTask_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
FunctionTestRunMainTask_TagsRequestsWithTaskSessionKey
(t *testing.T)
internal/reviewtask/loop_test.go:248
FunctionTestRunMainTask_TaskDoneExplicitDone
(t *testing.T)
internal/reviewtask/loop_test.go:170
FunctionTestRunMainTask_TaskDoneFailed
(t *testing.T)
internal/reviewtask/loop_test.go:189
FunctionTestRunMainTask_TaskDoneImmediately
(t *testing.T)
internal/reviewtask/loop_test.go:126
FunctionTestRunMainTask_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
FunctionTestRunMainTask_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
FunctionTestRunMainTask_ToolCallThenDone
(t *testing.T)
internal/reviewtask/loop_test.go:272
FunctionTestRunMainTask_UncompressibleContextStopsWithCompression
(t *testing.T)
internal/reviewtask/loop_test.go:407
FunctionTestRunMainTask_UnknownTool
(t *testing.T)
internal/reviewtask/loop_test.go:319
FunctionTestRunMainTask_UsesCompletionTokenLimit
(t *testing.T)
internal/reviewtask/loop_test.go:150
FunctionTestRunMainTask_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
FunctionTestRunPipelineSpansDoNotParentToDiffParse
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
FunctionTestRunPreview
(t *testing.T)
cmd/opencodereview/review_helpers_test.go:24
FunctionTestRunPreviewAppliesResolvedMaxTokens
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
FunctionTestRunPreviewCreatesNoSession
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
FunctionTestRunPreviewJSONFormat
(t *testing.T)
cmd/opencodereview/review_helpers_test.go:39
FunctionTestRunPreviewJSON_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
FunctionTestRunReviewFlagValidationWritesNoArtifacts
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
FunctionTestRunRulesCheck
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
FunctionTestRunRulesCheck_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
FunctionTestRunRulesCheck_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
FunctionTestRunRulesCheck_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
FunctionTestRunRulesCheck_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
FunctionTestRunScanPreview
(t *testing.T)
cmd/opencodereview/scan_helpers_test.go:35
FunctionTestRunScanPreviewAppliesMaxTokens
(t *testing.T)
cmd/opencodereview/scan_helpers_test.go:86
FunctionTestRunScanPreviewCreatesNoSession
TestRunScanPreviewCreatesNoSession mirrors TestRunPreviewCreatesNoSession: scan.NewAgent auto-creates a session too, so scan preview leaked the same u
cmd/opencodereview/scan_helpers_test.go:133
FunctionTestRunScanPreviewJSONFormat
(t *testing.T)
cmd/opencodereview/scan_helpers_test.go:53
FunctionTestRunSessionComments_JSON
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:366
FunctionTestRunSessionComments_JSONEmptyIsArray
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:423
FunctionTestRunSessionComments_NoCommentsMessage
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:445
FunctionTestRunSessionComments_SeverityFilter
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:332
FunctionTestRunSessionComments_TextRendersLikeReview
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:305
FunctionTestRunSessionCompare_CrossRepoRefuses
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:813
FunctionTestRunSessionCompare_JSONEmptyBucketsAreArrays
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:781
FunctionTestRunSessionCompare_JSONShape
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:684
FunctionTestRunSessionCompare_MalformedSessionID
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:884
FunctionTestRunSessionCompare_MixedRepoSpellings
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:634
FunctionTestRunSessionCompare_ModeMismatchWarnsNotFails
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:854
FunctionTestRunSessionCompare_RenamedFileFindingPersists
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:738
FunctionTestRunSessionCompare_SameSessionTwice
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:909
FunctionTestRunSessionCompare_TextShowsCounts
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:593
FunctionTestRunSessionCompare_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
FunctionTestRunSessionCompare_UnreviewedFilesAreNotResolved
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:929
FunctionTestRunSessionExport_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
FunctionTestRunSessionExport_Errors
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:1169
FunctionTestRunSessionExport_WritesFile
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:1106
FunctionTestRunSessionList_BranchFilterBeforeLimit
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:92
FunctionTestRunSessionList_BranchFilterEmptyMessage
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:198
FunctionTestRunSessionList_BranchFilterJSONMissingSessionsDir
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:213
FunctionTestRunSessionList_EmptyRepo
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:77
FunctionTestRunSessionList_JSON
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:50
FunctionTestRunSessionList_JSONMissingDirPrintsEmptyArray
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:228
FunctionTestRunSessionList_TextIncludesSessionID
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:21
FunctionTestRunSessionShow_AmbiguousIDRequiresRepo
(t *testing.T)
cmd/opencodereview/session_show_anywhere_test.go:88
FunctionTestRunSessionShow_FromAnotherDirectory
(t *testing.T)
cmd/opencodereview/session_show_anywhere_test.go:19
FunctionTestRunSessionShow_JSON
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:272
← previousnext →5,601–5,700 of 7,169, ranked by callers