MCPcopy Create free account

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

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

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
FunctionTestRunPersistsRetryReport
TestRunPersistsRetryReport pins that the report is frozen inside Run and embedded into session_end. The command takes its own deterministic snapshot a
internal/agent/retry_report_freeze_test.go:66
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:374
FunctionTestRunSessionComments_JSONEmptyIsArray
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:431
FunctionTestRunSessionComments_NoCommentsMessage
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:453
FunctionTestRunSessionComments_SeverityFilter
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:340
FunctionTestRunSessionComments_TextRendersLikeReview
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:313
FunctionTestRunSessionCompare_CrossRepoRefuses
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:821
FunctionTestRunSessionCompare_JSONEmptyBucketsAreArrays
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:789
FunctionTestRunSessionCompare_JSONShape
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:692
FunctionTestRunSessionCompare_MalformedSessionID
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:892
FunctionTestRunSessionCompare_MixedRepoSpellings
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:642
FunctionTestRunSessionCompare_ModeMismatchWarnsNotFails
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:862
FunctionTestRunSessionCompare_RenamedFileFindingPersists
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:746
FunctionTestRunSessionCompare_SameSessionTwice
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:917
FunctionTestRunSessionCompare_TextShowsCounts
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:601
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:1035
FunctionTestRunSessionCompare_UnreviewedFilesAreNotResolved
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:937
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:1151
FunctionTestRunSessionExport_Errors
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:1177
FunctionTestRunSessionExport_WritesFile
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:1114
FunctionTestRunSessionList_BranchFilterBeforeLimit
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:100
FunctionTestRunSessionList_BranchFilterEmptyMessage
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:206
FunctionTestRunSessionList_BranchFilterJSONMissingSessionsDir
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:221
FunctionTestRunSessionList_EmptyRepo
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:85
FunctionTestRunSessionList_JSON
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:58
FunctionTestRunSessionList_JSONMissingDirPrintsEmptyArray
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:236
FunctionTestRunSessionList_TextIncludesSessionID
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:29
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:280
FunctionTestRunSessionShow_JSONNoItemsIsArray
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:403
FunctionTestRunSessionShow_MissingAndInvalidIDs
(t *testing.T)
cmd/opencodereview/session_show_anywhere_test.go:123
FunctionTestRunSessionShow_MissingCheckoutAndMetadata
(t *testing.T)
cmd/opencodereview/session_show_anywhere_test.go:59
FunctionTestRunSessionShow_MissingID
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:475
FunctionTestRunSessionShow_RepoDoesNotFallBackToOtherRepositories
(t *testing.T)
cmd/opencodereview/session_show_anywhere_test.go:114
FunctionTestRunSessionShow_Text
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:254
FunctionTestRunSession_UnknownSubcommand
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:518
FunctionTestRunSuppressesInvalidRetryReport
TestRunSuppressesInvalidRetryReport pins that a collector invariant failure does not enter Run's error or agent warnings and is persisted nowhere. The
internal/agent/retry_report_freeze_test.go:112
FunctionTestRunWithoutCollectorPersistsNoReport
TestRunWithoutCollectorPersistsNoReport covers the nil-collector wiring, which is what scan and every test that does not opt in look like.
internal/agent/retry_report_freeze_test.go:154
FunctionTestRun_EmptyTemplate
(t *testing.T)
internal/scan/coverage_test.go:649
FunctionTestRun_FullPipeline
(t *testing.T)
internal/scan/coverage_test.go:690
FunctionTestRun_NoReviewableFiles
(t *testing.T)
internal/scan/coverage_test.go:662
FunctionTestRun_PlanThreshold
(t *testing.T)
internal/scan/coverage_test.go:745
FunctionTestRun_PromptOverflowRecordsFailure
(t *testing.T)
internal/scan/prompt_budget_test.go:21
FunctionTestRun_TokenBudgetStopSurfacesAsBudgetExceeded
TestRun_TokenBudgetStopSurfacesAsBudgetExceeded pins the gap the dispatch look-ahead cannot close: a single scan item admitted while usage is still lo
internal/scan/prompt_budget_test.go:176
FunctionTestRuneWrapCut
(t *testing.T)
cmd/opencodereview/output_helpers_test.go:111
FunctionTestRunnerAllowsBriefInheritedOutputWait
(t *testing.T)
acp/internal/orchestrator/process_group_test.go:92
FunctionTestRunnerBoundsOutputAndStderrTail
(t *testing.T)
acp/internal/orchestrator/runner_test.go:164
FunctionTestRunnerCancellationReapsProcessGroupChild
(t *testing.T)
acp/internal/orchestrator/process_group_test.go:131
FunctionTestRunnerChannelsCloseAfterSingleOutcome
(t *testing.T)
acp/internal/orchestrator/runner_test.go:195
FunctionTestRunnerCompletesAndKeepsStderrSeparate
(t *testing.T)
acp/internal/orchestrator/runner_test.go:19
FunctionTestRunnerConsumesPhaseThreeMockOCR
(t *testing.T)
acp/internal/orchestrator/runner_test.go:37
FunctionTestRunnerContextDeadlineOverridesExit
(t *testing.T)
acp/internal/orchestrator/runner_test.go:146
FunctionTestRunnerDeadlineOverridesExit
(t *testing.T)
acp/internal/orchestrator/runner_test.go:136
FunctionTestRunnerReclaimsDescendantsAfterLeaderExit
(t *testing.T)
acp/internal/orchestrator/process_group_test.go:20
FunctionTestRunnerRejectsInvalidAndMultipleJSON
(t *testing.T)
acp/internal/orchestrator/runner_test.go:71
FunctionTestRunnerRejectsInvalidCWDAndArgs
(t *testing.T)
acp/internal/orchestrator/runner_test.go:209
FunctionTestRunnerRejectsNonZeroExitEvenWithJSON
(t *testing.T)
acp/internal/orchestrator/runner_test.go:62
FunctionTestRunnerRetainsTruncationWarningWithoutEventConsumer
(t *testing.T)
acp/internal/orchestrator/runner_test.go:180
FunctionTestRunnerScanResult
(t *testing.T)
acp/internal/orchestrator/runner_test.go:156
FunctionTestRunnerSubmissionRepairAndArtifacts
(test *testing.T)
internal/behaviortask/runner_test.go:125
FunctionTestRunner_AcquireTimeout
(t *testing.T)
internal/gitcmd/runner_test.go:218
FunctionTestRunner_CancelledCallReleasesSemaphore
The semaphore must be released even when the pipe wait is cut short, otherwise one cancelled call starves every later caller.
internal/gitcmd/runner_pipe_test.go:102
FunctionTestRunner_CancelledWithSeparatePipesRepeated
Cancellation with separate stdout/stderr orphans, repeated: the grace callback and the deferred pipe teardown must not race. Run under -race.
internal/gitcmd/runner_pipe_test.go:263
FunctionTestRunner_ContextCancelled
(t *testing.T)
internal/gitcmd/runner_test.go:207
FunctionTestRunner_New
(t *testing.T)
internal/gitcmd/runner_test.go:64
← previousnext →5,901–6,000 of 7,484, ranked by callers