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
TestFileReader_Read_CommitMode_WithRunner_MissingFile
(t *testing.T)
internal/tool/filereader_read_test.go:162
Function
TestFileReader_Read_PathTraversal
(t *testing.T)
internal/tool/filereader_read_test.go:43
Function
TestFileReader_Read_SubdirectoryFile
(t *testing.T)
internal/tool/filereader_read_test.go:203
Function
TestFileReader_Read_SymlinkOutsideRepo
(t *testing.T)
internal/tool/filereader_read_test.go:53
Function
TestFileReader_Read_Workspace
(t *testing.T)
internal/tool/filereader_read_test.go:17
Function
TestFileReader_Read_WorkspaceNotFound
(t *testing.T)
internal/tool/filereader_read_test.go:34
Function
TestFileURLRoundTrip
(t *testing.T)
acp/internal/adapter/workspace/fileurl_test.go:13
Function
TestFileURLRoundTripNonASCII
(t *testing.T)
acp/internal/adapter/workspace/fileurl_test.go:41
Function
TestFinalManifest
(t *testing.T)
internal/session/final_manifest_test.go:8
Function
TestFinalProgressIncludesStatsOnlyInDetails
(t *testing.T)
acp/internal/adapter/progress_test.go:204
Function
TestFinalResultSendFailure
(t *testing.T)
acp/internal/adapter/output_test.go:68
Function
TestFinalizeDecisionOrder
(t *testing.T)
internal/llm/retry_report_test.go:128
Function
TestFinalizeFilesReviewedUsesManifestSelectedPaths
(t *testing.T)
internal/session/history_test.go:76
Function
TestFinalizeNilReceiver
Finalize on a nil receiver must not panic and returns a well-formed, empty manifest alongside an error (mirrors the other nil guards).
internal/session/manifest_test.go:551
Function
TestFinalizeRejectsEmptyRunID
Finalize rejects an empty run_id.
internal/session/manifest_test.go:640
Function
TestFinalizeRejectsMissingMode
Finalize rejects a missing/invalid input mode rather than emitting an invalid v1 manifest.
internal/session/manifest_test.go:594
Function
TestFinalizeReplaysWriteErrorOnEveryCall
TestFinalizeReplaysWriteErrorOnEveryCall verifies that every call observes the cached write error instead of a later call falsely reporting success.
internal/session/persist_test.go:342
Function
TestFinalizeRequestWithPanicSentinel
A panic must still finalize, or the entry stays unfinalized and Freeze drops the whole run's report — one panicking file would erase every other file'
internal/llm/retry_boundary_test.go:703
Function
TestFinalizeReturnsOwnedExcludedSlice
(t *testing.T)
internal/session/manifest_test.go:997
Function
TestFinalizeReturnsOwnedSlices
Finalize returns snapshots that own their coverage slices and run_failure: mutating one caller's manifest must not affect another's.
internal/session/manifest_test.go:802
Function
TestFinalizeSurfacesWriteError
TestFinalizeSurfacesWriteError verifies that when the session_end write fails, Finalize returns that error instead of swallowing it, so callers can su
internal/session/persist_test.go:324
Function
TestFinalizeSurfacesWriterCreationErrorWithoutStdout
(t *testing.T)
internal/session/persist_test.go:275
Function
TestFinalizeSweepsUndecidedToUnknown
Finalize must sweep any item left without a terminal outcome into failed/unknown, so no selected item is ever silently dropped.
internal/session/manifest_test.go:298
Function
TestFinalizeValidationFailureDoesNotMutateSelectedItems
(t *testing.T)
internal/session/manifest_test.go:610
Function
TestFinalizeWritesSessionEndExactlyOnce
TestFinalizeWritesSessionEndExactlyOnce verifies that repeated Finalize calls do not append a second session_end record.
internal/session/persist_test.go:362
Function
TestFinalizeZeroAttemptProducesNoRecord
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
Function
TestFindCustomIdx
TestFindCustomIdx covers a hit and a miss.
cmd/opencodereview/provider_tui_cpinput_test.go:81
Function
TestFindDiff
(t *testing.T)
internal/agent/coverage_test.go:193
Function
TestFindSessionsByID_ReportsAStatFailureRatherThanSkippingIt
(t *testing.T)
internal/session/delete_test.go:346
Function
TestFindTestToolCall
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
Function
TestFindTestToolCall_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
Function
TestFindingLocationBoundaries
(t *testing.T)
acp/internal/adapter/workspace/files_test.go:13
Function
TestFindingMarkdownFallbackAndLanguages
(t *testing.T)
acp/internal/adapter/presentation/report_test.go:49
Function
TestFindingMarkdownFormatting
(t *testing.T)
acp/internal/adapter/presentation/report_test.go:28
Function
TestFirstLine
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
Function
TestFirstNonBlankLine
(t *testing.T)
internal/config/rules/sniffer_test.go:319
Function
TestFirstNonEmpty
(t *testing.T)
acp/internal/intent/llm/resolve_test.go:164
Function
TestFlagErrorWithSuggestion
(t *testing.T)
cmd/opencodereview/flag_suggest_test.go:64
Function
TestFocusCPStep_AllSteps
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:467
Function
TestFocusCSS_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:448
Function
TestFocusManualStep_AllSteps
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:581
Function
TestFormatDuration
(t *testing.T)
internal/telemetry/events_test.go:251
Function
TestFormatDuration
(t *testing.T)
internal/viewer/server_test.go:100
Function
TestFormatNumber
(t *testing.T)
internal/viewer/server_test.go:64
Function
TestFormatPlanGuidance_EmptyAndMalformed
(t *testing.T)
internal/scan/agent_test.go:77
Function
TestFormatPlanGuidance_FullJSON
(t *testing.T)
internal/scan/agent_test.go:57
Function
TestFormatPlanGuidance_SummaryOnly
(t *testing.T)
internal/scan/agent_test.go:89
Function
TestFormatResult
(t *testing.T)
acp/internal/adapter/presentation/report_test.go:190
Function
TestFormatResultVariants
(t *testing.T)
acp/internal/adapter/presentation/report_test.go:197
Function
TestFormatTime
(t *testing.T)
internal/viewer/server_test.go:123
Function
TestFormatTime_UTC
(t *testing.T)
internal/viewer/server_test.go:133
Function
TestFormatToolDefs
(t *testing.T)
internal/agent/agent_test.go:407
Function
TestFormattedFindingsKeepSafeNavigationAndText
(t *testing.T)
acp/internal/adapter/presentation/report_test.go:206
Function
TestFreezeAggregatesAndSorts
(t *testing.T)
internal/llm/retry_report_test.go:474
Function
TestFreezeErrorIdentifiesTheRequest
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
Function
TestFreezeErrorIsDeterministic
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
Function
TestFreezeListsCancelledRequestWithoutErrorAttempt
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
Function
TestFreezeRefusesEntryWithNoAttempt
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
Function
TestFreezeRejectsInvalidRunID
(t *testing.T)
internal/llm/retry_report_test.go:676
Function
TestFreezeRejectsOrderingViolations
(t *testing.T)
internal/llm/retry_report_test.go:568
Function
TestFreezeReturnsNothingWhenNoRetryHappened
(t *testing.T)
internal/llm/retry_report_test.go:459
Function
TestFreezeSucceededRequestWithExtraAttempt
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
Function
TestFreezeSuppressesReportWhenValidationFails
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
Function
TestFrozenAfterFinalize
After Finalize the builder is frozen: further mutation returns an error and Finalize is idempotent.
internal/session/manifest_test.go:466
Function
TestGPT56ModelsUseResponsesProtocol
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
Function
TestGenerate
(t *testing.T)
internal/llm/gen/main_test.go:103
Function
TestGenerateRequiresOutput
(t *testing.T)
internal/llm/gen/main_test.go:76
Function
TestGeneratedProvidersUpToDate
(t *testing.T)
internal/llm/gen/main_test.go:18
Function
TestGetCommitMessage
(t *testing.T)
cmd/opencodereview/git_test.go:65
Function
TestGetCommitMessage_IgnoresGitStderr
TestGetCommitMessage_IgnoresGitStderr covers ocr review --commit, which uses the commit message as review background. getCommitMessage used CombinedOu
cmd/opencodereview/git_test.go:88
Function
TestGetCommitMessage_InvalidCommit
(t *testing.T)
cmd/opencodereview/git_test.go:76
Function
TestGetDiffSetKeepsRootPackageSourceDir
(t *testing.T)
internal/diff/git_test.go:111
Function
TestGetDiffSetRetainsBuiltInDirectoryExclusionsForReporting
(t *testing.T)
internal/diff/git_test.go:73
Function
TestGetDiffSetWalksChangesetOrder
(t *testing.T)
internal/diff/git_test.go:140
Function
TestGetDiffSetWalksChangesetOrderAcrossGitignoreDrop
(t *testing.T)
internal/diff/git_test.go:184
Function
TestGetDiff_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
Function
TestGetDiff_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
Function
TestGetDiff_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
Function
TestGetDiff_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
Function
TestGetMeter
(t *testing.T)
internal/telemetry/metrics_test.go:60
Function
TestGetOrCreateFileSession
(t *testing.T)
internal/session/history_test.go:54
Function
TestGetTracer
(t *testing.T)
internal/telemetry/span_test.go:104
Function
TestGitFailure
(t *testing.T)
internal/diff/git_error_test.go:21
Function
TestGitGrep_CommitMode_Found
(t *testing.T)
internal/tool/code_search_test.go:245
Function
TestGitGrep_CommitMode_LiteralWithRegexMetaChars
(t *testing.T)
internal/tool/code_search_test.go:345
Function
TestGitGrep_CommitMode_NoMatch
(t *testing.T)
internal/tool/code_search_test.go:261
Function
TestGitGrep_CommitMode_WithBadPathspec
(t *testing.T)
internal/tool/code_search_test.go:319
Function
TestGitGrep_CommitMode_WithPathspec
(t *testing.T)
internal/tool/code_search_test.go:274
Function
TestGitGrep_InvalidRef_ReturnsError
(t *testing.T)
internal/tool/code_search_test.go:358
Function
TestGitGrep_LiteralWithRegexMetaChars
(t *testing.T)
internal/tool/code_search_test.go:333
Function
TestGitGrep_NonASCIIPath
(t *testing.T)
internal/tool/code_search_test.go:793
Function
TestGitGrep_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:489
Function
TestGitGrep_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:522
Function
TestGitGrep_OptionLikeRefDoesNotLaunchPager
(t *testing.T)
internal/tool/code_search_test.go:296
Function
TestGitGrep_PerlRegexp_InvalidPattern_ReturnsError
(t *testing.T)
internal/tool/code_search_test.go:373
Function
TestGitGrep_RejectsOptionLikeRef
(t *testing.T)
internal/tool/code_search_test.go:53
Function
TestGitGrep_ResultLimit
(t *testing.T)
internal/tool/code_search_test.go:168
Function
TestGitGrep_Timeout
(t *testing.T)
internal/tool/code_search_test.go:743
Function
TestGitGrep_WithRunner
(t *testing.T)
internal/tool/code_search_test.go:700
Function
TestGitGrep_WithRunner_CommitMode
(t *testing.T)
internal/tool/code_search_test.go:728
← previous
next →
4,001–4,100 of 7,169, ranked by callers