MCPcopy Create free account

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

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

FunctionTestFinalizeValidationFailureDoesNotMutateSelectedItems
(t *testing.T)
internal/session/manifest_test.go:610
FunctionTestFinalizeWritesSessionEndExactlyOnce
TestFinalizeWritesSessionEndExactlyOnce verifies that repeated Finalize calls do not append a second session_end record.
internal/session/persist_test.go:397
FunctionTestFinalizeZeroAttemptProducesNoRecord
Rule 1: a logical request that never reached the observer produces no record at all, so it cannot inflate total_requests or appear in requests.
internal/llm/retry_report_test.go:187
FunctionTestFindCustomIdx
TestFindCustomIdx covers a hit and a miss.
cmd/opencodereview/provider_tui_cpinput_test.go:81
FunctionTestFindDiff
(t *testing.T)
internal/agent/coverage_test.go:193
FunctionTestFindSessionsByID_ReportsAStatFailureRatherThanSkippingIt
(t *testing.T)
internal/session/delete_test.go:356
FunctionTestFindTestToolCall
TestFindTestToolCall picks out the configured tool from a response, ignoring anything else the model may have asked for.
cmd/opencodereview/llm_cmd_test.go:103
FunctionTestFindTestToolCall_EmptyNameMatchesNothing
TestFindTestToolCall_EmptyNameMatchesNothing guards the task-without-a-tool path: an empty name must not match a provider's unnamed tool call, or the
cmd/opencodereview/llm_cmd_test.go:127
FunctionTestFindingLocationBoundaries
(t *testing.T)
acp/internal/adapter/workspace/files_test.go:13
FunctionTestFindingMarkdownFallbackAndLanguages
(t *testing.T)
acp/internal/adapter/presentation/report_test.go:49
FunctionTestFindingMarkdownFormatting
(t *testing.T)
acp/internal/adapter/presentation/report_test.go:28
FunctionTestFirstLine
TestFirstLine covers firstLine: it returns the first non-empty trimmed line, skips leading blank lines, and returns "" when there is no non-empty line
internal/diff/first_line_test.go:10
FunctionTestFirstNonBlankLine
(t *testing.T)
internal/config/rules/sniffer_test.go:319
FunctionTestFirstNonEmpty
(t *testing.T)
acp/internal/intent/llm/resolve_test.go:164
FunctionTestFlagErrorWithSuggestion
(t *testing.T)
cmd/opencodereview/flag_suggest_test.go:64
FunctionTestFocusCPStep_AllSteps
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:467
FunctionTestFocusCSS_CoversCollapsiblesAndTableLinks
TestFocusCSS_CoversCollapsiblesAndTableLinks holds the focus-visible rules for the collapsible headers, in-table links and scrollable table regions: t
internal/viewer/server_extra_test.go:459
FunctionTestFocusManualStep_AllSteps
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:581
FunctionTestFormatDuration
(t *testing.T)
internal/telemetry/events_test.go:251
FunctionTestFormatDuration
(t *testing.T)
internal/viewer/server_test.go:100
FunctionTestFormatNumber
(t *testing.T)
internal/viewer/server_test.go:64
FunctionTestFormatPlanGuidance_EmptyAndMalformed
(t *testing.T)
internal/scan/agent_test.go:77
FunctionTestFormatPlanGuidance_FullJSON
(t *testing.T)
internal/scan/agent_test.go:57
FunctionTestFormatPlanGuidance_SummaryOnly
(t *testing.T)
internal/scan/agent_test.go:89
FunctionTestFormatResult
(t *testing.T)
acp/internal/adapter/presentation/report_test.go:190
FunctionTestFormatResultVariants
(t *testing.T)
acp/internal/adapter/presentation/report_test.go:197
FunctionTestFormatTime
(t *testing.T)
internal/viewer/server_test.go:123
FunctionTestFormatTime_UTC
(t *testing.T)
internal/viewer/server_test.go:133
FunctionTestFormatToolDefs
(t *testing.T)
internal/agent/agent_test.go:407
FunctionTestFormattedFindingsKeepSafeNavigationAndText
(t *testing.T)
acp/internal/adapter/presentation/report_test.go:206
FunctionTestFreezeAggregatesAndSorts
(t *testing.T)
internal/llm/retry_report_test.go:474
FunctionTestFreezeErrorIdentifiesTheRequest
A construction error has to name the offending request: with --concurrency > 1 a run holds hundreds of logical requests, and the error reaches the use
internal/llm/retry_report_test.go:629
FunctionTestFreezeErrorIsDeterministic
Freeze walks entries in logical_request_id order rather than map order, so a collector holding several broken entries always blames the same one. Unde
internal/llm/retry_report_test.go:652
FunctionTestFreezeListsCancelledRequestWithoutErrorAttempt
A request cancelled after a single clean attempt has no error attempt and no retry, yet it counts in cancelled_requests. It must still be listed, or t
internal/llm/retry_report_test.go:521
FunctionTestFreezeRefusesEntryWithNoAttempt
Not reachable through the API: RecordAttempt is the only thing that creates an entry and it always appends. The entry is built directly because this g
internal/llm/retry_report_test.go:696
FunctionTestFreezeRejectsInvalidRunID
(t *testing.T)
internal/llm/retry_report_test.go:676
FunctionTestFreezeRejectsOrderingViolations
(t *testing.T)
internal/llm/retry_report_test.go:568
FunctionTestFreezeReturnsNothingWhenNoRetryHappened
(t *testing.T)
internal/llm/retry_report_test.go:459
FunctionTestFreezeSucceededRequestWithExtraAttempt
The x-should-retry case: a retry with no error at all. "1 retry, 0 recovered, 0 failed" is the correct answer, not a counting bug.
internal/llm/retry_report_test.go:541
FunctionTestFreezeSuppressesReportWhenValidationFails
The point is not the tampering — Freeze's own accounting cannot produce broken numbering. It is that validateReport is wired into Freeze rather than m
internal/llm/retry_report_test.go:714
FunctionTestFrozenAfterFinalize
After Finalize the builder is frozen: further mutation returns an error and Finalize is idempotent.
internal/session/manifest_test.go:466
FunctionTestFrozenRevisionDoesNotReadWorkspace
(test *testing.T)
internal/behaviortask/code_test.go:124
FunctionTestGPT56ModelsUseResponsesProtocol
TestGPT56ModelsUseResponsesProtocol guards the fix for issue #559: GPT-5.6 models require the OpenAI Responses API (/v1/responses). A built-in provide
internal/llm/providers_test.go:289
FunctionTestGenerate
(t *testing.T)
internal/llm/gen/main_test.go:103
FunctionTestGenerateRequiresOutput
(t *testing.T)
internal/llm/gen/main_test.go:76
FunctionTestGeneratedProvidersUpToDate
(t *testing.T)
internal/llm/gen/main_test.go:18
FunctionTestGetCommitMessage
(t *testing.T)
cmd/opencodereview/git_test.go:66
FunctionTestGetCommitMessage_IgnoresGitStderr
TestGetCommitMessage_IgnoresGitStderr covers ocr review --commit, which uses the commit message as review background. getCommitMessage used CombinedOu
cmd/opencodereview/git_test.go:89
FunctionTestGetCommitMessage_InvalidCommit
(t *testing.T)
cmd/opencodereview/git_test.go:77
FunctionTestGetDiffSetKeepsRootPackageSourceDir
(t *testing.T)
internal/diff/git_test.go:111
FunctionTestGetDiffSetRetainsBuiltInDirectoryExclusionsForReporting
(t *testing.T)
internal/diff/git_test.go:73
FunctionTestGetDiffSetWalksChangesetOrder
(t *testing.T)
internal/diff/git_test.go:140
FunctionTestGetDiffSetWalksChangesetOrderAcrossGitignoreDrop
(t *testing.T)
internal/diff/git_test.go:184
FunctionTestGetDiff_CancelledMidWriteReportsCancellation
TestGetDiff_CancelledMidWriteReportsCancellation covers the case that has no diagnosis to quote at all: a signalled process writes nothing to stderr,
internal/diff/git_error_test.go:203
FunctionTestGetDiff_CommitFailureSurfacesGitMessage
TestGetDiff_CommitFailureSurfacesGitMessage is the regression test for #972: `git show` failing used to surface as a bare exit status, so neither the
internal/diff/git_error_test.go:236
FunctionTestGetDiff_FailureQuotesStderrNotStdout
TestGetDiff_FailureQuotesStderrNotStdout pins the split that keeps repository content out of the error. Git writes the diff to stdout and its diagnos
internal/diff/git_error_test.go:179
FunctionTestGetDiff_WorkspaceFailureSurfacesFallbackMessage
TestGetDiff_WorkspaceFailureSurfacesFallbackMessage pins which of the two commands in workspaceTrackedDiff gets to speak when both fail. Reaching the
internal/diff/git_error_test.go:105
FunctionTestGetMeter
(t *testing.T)
internal/telemetry/metrics_test.go:60
FunctionTestGetOrCreateFileSession
(t *testing.T)
internal/session/history_test.go:54
FunctionTestGetTracer
(t *testing.T)
internal/telemetry/span_test.go:104
FunctionTestGitFailure
(t *testing.T)
internal/diff/git_error_test.go:21
FunctionTestGitGrep_CommitMode_Found
(t *testing.T)
internal/tool/code_search_test.go:253
FunctionTestGitGrep_CommitMode_LiteralWithRegexMetaChars
(t *testing.T)
internal/tool/code_search_test.go:353
FunctionTestGitGrep_CommitMode_NoMatch
(t *testing.T)
internal/tool/code_search_test.go:269
FunctionTestGitGrep_CommitMode_WithBadPathspec
(t *testing.T)
internal/tool/code_search_test.go:327
FunctionTestGitGrep_CommitMode_WithPathspec
(t *testing.T)
internal/tool/code_search_test.go:282
FunctionTestGitGrep_InvalidRef_ReturnsError
(t *testing.T)
internal/tool/code_search_test.go:366
FunctionTestGitGrep_LiteralWithRegexMetaChars
(t *testing.T)
internal/tool/code_search_test.go:341
FunctionTestGitGrep_NonASCIIPath
(t *testing.T)
internal/tool/code_search_test.go:855
FunctionTestGitGrep_NonGitDirectoryFallback
TestGitGrep_NonGitDirectoryFallback verifies code_search works in a plain (non-git) directory by retrying git grep in --no-index mode instead of faili
internal/tool/code_search_test.go:551
FunctionTestGitGrep_NonGitDirectoryNoMatch
TestGitGrep_NonGitDirectoryNoMatch verifies the no-match path in a non-git dir returns the sentinel rather than an error.
internal/tool/code_search_test.go:584
FunctionTestGitGrep_OptionLikeRefDoesNotLaunchPager
(t *testing.T)
internal/tool/code_search_test.go:304
FunctionTestGitGrep_PerlRegexp_InvalidPatternAndRetry
(t *testing.T)
internal/tool/code_search_test.go:414
FunctionTestGitGrep_PerlRegexp_InvalidPattern_ReturnsError
(t *testing.T)
internal/tool/code_search_test.go:384
FunctionTestGitGrep_RejectsOptionLikeRef
(t *testing.T)
internal/tool/code_search_test.go:53
FunctionTestGitGrep_ResultLimit
(t *testing.T)
internal/tool/code_search_test.go:168
FunctionTestGitGrep_Timeout
(t *testing.T)
internal/tool/code_search_test.go:805
FunctionTestGitGrep_WithRunner
(t *testing.T)
internal/tool/code_search_test.go:762
FunctionTestGitGrep_WithRunner_CommitMode
(t *testing.T)
internal/tool/code_search_test.go:790
FunctionTestGitGrep_WithRunner_NoMatch
(t *testing.T)
internal/tool/code_search_test.go:776
FunctionTestGitGrep_WorkspaceMode_Found
(t *testing.T)
internal/tool/code_search_test.go:144
FunctionTestGitGrep_WorkspaceMode_NoMatch
(t *testing.T)
internal/tool/code_search_test.go:156
FunctionTestGitGrep_WorkspaceMode_UntrackedFile
(t *testing.T)
internal/tool/code_search_test.go:528
FunctionTestGitRepoRejectsEmptyRef
(t *testing.T)
acp/internal/intent/validate_extra_test.go:12
FunctionTestGitRepoResolvesHead
(t *testing.T)
acp/internal/intent/validate_extra_test.go:18
FunctionTestGitVersion_AtLeast
(t *testing.T)
internal/gitcmd/version_test.go:52
FunctionTestGitcmdPipeHelper
TestGitcmdPipeHelper is the helper entry point. It does nothing unless the mode env var is set, so a normal test run ignores it.
internal/gitcmd/runner_pipe_windows_test.go:37
FunctionTestGraceRoundRequestBudgetOverridesRoundLimit
(test *testing.T)
internal/llmloop/request_budget_test.go:70
FunctionTestGroupBatches_BatchSizeCap
(t *testing.T)
internal/scan/batch_test.go:102
FunctionTestGroupBatches_ByDirectory
(t *testing.T)
internal/scan/batch_test.go:73
FunctionTestGroupBatches_ByLanguage
(t *testing.T)
internal/scan/batch_test.go:51
FunctionTestGroupBatches_Empty
(t *testing.T)
internal/scan/batch_test.go:116
FunctionTestGroupBatches_None
(t *testing.T)
internal/scan/batch_test.go:93
FunctionTestGroupChurn
(t *testing.T)
internal/agent/grouping_test.go:717
FunctionTestGroupDiffs_AtFileThresholdCallsLLM
(t *testing.T)
internal/agent/grouping_test.go:409
FunctionTestGroupDiffs_BundleDisabledFallsToPerFile
(t *testing.T)
internal/agent/grouping_test.go:429
FunctionTestGroupDiffs_BundleSplitByMaxFilesPerGroup
(t *testing.T)
internal/agent/grouping_test.go:488
FunctionTestGroupDiffs_BundleTokenBudgetSplit
(t *testing.T)
internal/agent/grouping_test.go:354
FunctionTestGroupDiffs_LLMError_Fallback
(t *testing.T)
internal/agent/grouping_test.go:257
FunctionTestGroupDiffs_LLMSuccess
(t *testing.T)
internal/agent/grouping_test.go:271
← previousnext →4,301–4,400 of 7,599, ranked by callers