Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,390 in github.com/alibaba/open-code-review
⨍
Functions
7,390
◇
Types & classes
806
Function
TestExtraHeadersAndBody
(t *testing.T)
acp/internal/intent/llm/client_test.go:305
Function
TestExtractCodeBlock
(t *testing.T)
internal/diff/relocation_test.go:275
Function
TestExtractSideLines_DivergentStartLines
(t *testing.T)
internal/diff/resolver_test.go:388
Function
TestExtractSideLines_NewSide
--------------------------------------------------------------------------- extractSideLines unit tests ----------------------------------------------
internal/diff/resolver_test.go:326
Function
TestExtractSideLines_OldSide
(t *testing.T)
internal/diff/resolver_test.go:357
Function
TestExtractSideLines_OnlyAdded
(t *testing.T)
internal/diff/resolver_test.go:424
Function
TestExtractSideLines_OnlyDeleted
(t *testing.T)
internal/diff/resolver_test.go:445
Function
TestExtractText_ContentBlocks
(t *testing.T)
internal/llm/message_test.go:88
Function
TestExtractText_Default
(t *testing.T)
internal/llm/message_test.go:115
Function
TestExtractText_NestedContentBlocks
(t *testing.T)
internal/llm/message_test.go:98
Function
TestExtractText_NilContent
(t *testing.T)
internal/llm/message_test.go:122
Function
TestExtractText_String
(t *testing.T)
internal/llm/message_test.go:81
Function
TestExtractTopLevelJSON
TestExtractTopLevelJSON covers extractTopLevelJSON directly: quoted braces inside strings must not perturb the depth count, and escaped quotes must no
internal/reviewtask/tool_args_json_test.go:61
Function
TestFail
(t *testing.T)
internal/tool/response_message_test.go:21
Function
TestFailedDifferentClassErrorsAndKeepsFirst
Re-marking a failed item with a different classification is a conflicting transition: it errors and the first classification is kept (never silently o
internal/session/manifest_test.go:368
Function
TestFailedPlusWaivedIsPartial
A failed + waived + completed mix still has an unresolved failure -> partial.
internal/session/manifest_test.go:286
Function
TestFailedSameClassIsIdempotent
Re-marking a failed item with the same classification is idempotent; reason is free text and does not participate, so the first reason is kept.
internal/session/manifest_test.go:345
Function
TestFileFilter_CaseInsensitive
(t *testing.T)
internal/config/rules/system_rules_test.go:792
Function
TestFileFilter_IsUserExcluded
(t *testing.T)
internal/config/rules/system_rules_test.go:736
Function
TestFileFilter_IsUserIncluded
(t *testing.T)
internal/config/rules/system_rules_test.go:761
Function
TestFileFilter_IsUserIncluded_EmptyInclude
(t *testing.T)
internal/config/rules/system_rules_test.go:785
Function
TestFileFindFallbackUsesAuthorizedNames
(test *testing.T)
internal/behaviortask/scope_regression_test.go:96
Function
TestFileFindPreservesWhitespacePaths
(test *testing.T)
internal/behaviortask/scope_regression_test.go:66
Function
TestFileFindProvider_Tool
(t *testing.T)
internal/tool/file_find_test.go:94
Function
TestFileFind_BasenamePrecisionAndFallback
(t *testing.T)
internal/tool/file_find_test.go:303
Function
TestFileFind_BlankQuery
(t *testing.T)
internal/tool/file_find_test.go:101
Function
TestFileFind_CaseSensitive
(t *testing.T)
internal/tool/file_find_test.go:233
Function
TestFileFind_GitRepo_CommitMode
(t *testing.T)
internal/tool/file_find_test.go:165
Function
TestFileFind_GitRepo_StarlarkBuildFiles
(t *testing.T)
internal/tool/file_find_test.go:186
Function
TestFileFind_GitRepo_WithRunner
(t *testing.T)
internal/tool/file_find_test.go:219
Function
TestFileFind_GitRepo_WorkspaceMode
(t *testing.T)
internal/tool/file_find_test.go:152
Function
TestFileFind_NonASCIIPath
TestFileFind_NonASCIIPath verifies that file_find reports non-ASCII paths literally instead of as quoted octal escapes under git's default core.quotep
internal/tool/file_find_test.go:367
Function
TestFileFind_NonGitDirectoryFallback
TestFileFind_NonGitDirectoryFallback verifies file_find works in a plain (non-git) directory by falling back to a filesystem walk instead of failing w
internal/tool/file_find_test.go:40
Function
TestFileFind_NonGitDirectoryNoMatch
TestFileFind_NonGitDirectoryNoMatch verifies the not-found path in a non-git dir returns the sentinel rather than an error.
internal/tool/file_find_test.go:78
Function
TestFileFind_PathWithSubdirectory
(t *testing.T)
internal/tool/file_find_test.go:260
Function
TestFileGroupKey_Multiple
(t *testing.T)
internal/agent/grouping_test.go:234
Function
TestFileGroupKey_Single
(t *testing.T)
internal/agent/grouping_test.go:227
Function
TestFileReadDiffAllPathsFoundHasNoError
Every requested path has a diff: no part of the missing-path message may appear at all.
internal/tool/file_read_diff_missing_test.go:80
Function
TestFileReadDiffCapsAvailablePathList
The available-path list exists to be read in one glance, so it is capped and the remainder is counted rather than listed.
internal/tool/file_read_diff_missing_test.go:102
Function
TestFileReadDiffEmptyRequestUnchanged
An empty request stays a malformed call with its own message.
internal/tool/file_read_diff_missing_test.go:124
Function
TestFileReadDiffEmptySnapshotClaimsNoMode
An empty snapshot has no paths to offer. Both review and scan reach this state only through their own initialization (scan injects full file contents,
internal/tool/file_read_diff_missing_test.go:140
Function
TestFileReadDiffNamesMissingPathAndAvailablePaths
During a review the snapshot holds the change set, and the model is asked to confirm cross-file concerns by reading other files' diffs. When it names
internal/tool/file_read_diff_missing_test.go:24
Function
TestFileReadDiffProvider_Execute
(t *testing.T)
internal/tool/file_read_diff_test.go:35
Function
TestFileReadDiffProvider_SetDiffMap
(t *testing.T)
internal/tool/file_read_diff_test.go:94
Function
TestFileReadDiffProvider_Tool
(t *testing.T)
internal/tool/file_read_diff_test.go:104
Function
TestFileReadDiffReportsPartialHits
Several paths in one call: the message must not pretend every path was missing, or the model stops looking for the one that was. The error line names
internal/tool/file_read_diff_missing_test.go:56
Function
TestFileReadProvider_Tool
(t *testing.T)
internal/tool/file_read_test.go:337
Function
TestFileReadRef
TestFileReadRef pins the other half of sealing the input. The diff is pinned to the commit admission resolved, so file_read has to read at that same c
cmd/opencodereview/review_resume_more_test.go:430
Function
TestFileReader_ReadLines_CommitMode_MissingFile
(t *testing.T)
internal/tool/filereader_read_test.go:192
Function
TestFileReader_ReadLines_CommitMode_WithRunner
(t *testing.T)
internal/tool/filereader_read_test.go:174
Function
TestFileReader_ReadLines_Workspace
(t *testing.T)
internal/tool/filereader_read_test.go:73
Function
TestFileReader_Read_CommitMode
(t *testing.T)
internal/tool/filereader_read_test.go:119
Function
TestFileReader_Read_CommitMode_MissingFile
(t *testing.T)
internal/tool/filereader_read_test.go:136
Function
TestFileReader_Read_CommitMode_MonorepoSubdirPath
TestFileReader_Read_CommitMode_MonorepoSubdirPath reproduces #287 at the git-show layer: in a monorepo, git reports paths relative to the repo root (e
internal/tool/filereader_read_test.go:228
Function
TestFileReader_Read_CommitMode_WithRunner
(t *testing.T)
internal/tool/filereader_read_test.go:147
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:356
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:459
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
← previous
next →
4,101–4,200 of 7,390, ranked by callers