Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,599 in github.com/alibaba/open-code-review
⨍
Functions
7,599
◇
Types & classes
815
Function
TestExecute_Truncation
(t *testing.T)
internal/tool/file_read_test.go:304
Function
TestExecute_UnrenderedOversizeLineDoesNotReportLineTruncation
(test *testing.T)
internal/tool/file_read_test.go:507
Function
TestExecute_WithEndLine
setupTestRepo is already defined in code_search_test.go (same package) getHeadCommit is already defined in code_search_test.go (same package)
internal/tool/file_read_test.go:442
Function
TestExecutionCommandQuotesArguments
(t *testing.T)
acp/internal/adapter/presentation/progress_format_test.go:40
Function
TestExecutionDetailsSurviveUpdatesWithoutCommandInChat
(t *testing.T)
acp/internal/adapter/progress_test.go:31
Function
TestExecutionStatsFromCLIJSON
(t *testing.T)
acp/internal/adapter/presentation/progress_format_test.go:70
Function
TestExpandBraces_MultipleOptions
(t *testing.T)
internal/config/rules/system_rules_test.go:39
Function
TestExpandBraces_NoBraces
(t *testing.T)
internal/config/rules/system_rules_test.go:19
Function
TestExpandBraces_SingleGroup
(t *testing.T)
internal/config/rules/system_rules_test.go:26
Function
TestExpandBraces_UnclosedBrace
(t *testing.T)
internal/config/rules/system_rules_test.go:52
Function
TestExpandSessionKeyInBody
(t *testing.T)
internal/llm/sessionkey_test.go:170
Function
TestExpandSessionKeyInHeaders
(t *testing.T)
internal/llm/sessionkey_test.go:144
Function
TestExplainErrorClassifiesBedrockFailures
TestExplainErrorClassifiesBedrockFailures covers the diagnosis Bedrock's own wording does not give. Two of these are actively misleading: the API-key
internal/llm/bedrock_test.go:379
Function
TestExplainErrorLeavesNonBedrockErrorsAlone
TestExplainErrorLeavesNonBedrockErrorsAlone keeps the diagnosis scoped: every other protocol shares this client type.
internal/llm/bedrock_test.go:492
Function
TestExplainErrorNamesTheBearerTokenVariable
TestExplainErrorNamesTheBearerTokenVariable separates the two ways the same 403 arrives: an SSO token the SDK attached on its own, versus a token the
internal/llm/bedrock_test.go:481
Function
TestExplicitPlanConsent
(t *testing.T)
internal/chatgptauth/recovery_test.go:94
Function
TestExportSession_Errors
TestExportSession_Errors pins that a failure writes nothing, so a caller pointing at a file cannot end up with a half-rendered page.
internal/viewer/export_test.go:138
Function
TestExportSession_SelfContained
TestExportSession_SelfContained is the whole point of the feature: the page must render offline, so all /static/ assets have to arrive inlined and cor
internal/viewer/export_test.go:41
Function
TestExportSession_Variants
(t *testing.T)
internal/viewer/export_test.go:80
Function
TestExtFromPath
(t *testing.T)
internal/scan/coverage_test.go:312
Function
TestExtFromPath
(t *testing.T)
internal/agent/agent_test.go:379
Function
TestExtraEnumCaseCompatibility
(t *testing.T)
acp/internal/contract/intent_test.go:369
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:790
Function
TestFileFilter_IsUserExcluded
(t *testing.T)
internal/config/rules/system_rules_test.go:734
Function
TestFileFilter_IsUserIncluded
(t *testing.T)
internal/config/rules/system_rules_test.go:759
Function
TestFileFilter_IsUserIncluded_EmptyInclude
(t *testing.T)
internal/config/rules/system_rules_test.go:783
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:99
Function
TestFileFind_BasenamePrecisionAndFallback
(t *testing.T)
internal/tool/file_find_test.go:308
Function
TestFileFind_BlankQuery
(t *testing.T)
internal/tool/file_find_test.go:106
Function
TestFileFind_CaseSensitive
(t *testing.T)
internal/tool/file_find_test.go:238
Function
TestFileFind_GitRepo_CommitMode
(t *testing.T)
internal/tool/file_find_test.go:170
Function
TestFileFind_GitRepo_StarlarkBuildFiles
(t *testing.T)
internal/tool/file_find_test.go:191
Function
TestFileFind_GitRepo_WithRunner
(t *testing.T)
internal/tool/file_find_test.go:224
Function
TestFileFind_GitRepo_WorkspaceMode
(t *testing.T)
internal/tool/file_find_test.go:157
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:372
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:83
Function
TestFileFind_PathWithSubdirectory
(t *testing.T)
internal/tool/file_find_test.go:265
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:377
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:359
Function
TestFinalizeSurfacesWriterCreationErrorWithoutStdout
(t *testing.T)
internal/session/persist_test.go:310
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
← previous
next →
4,201–4,300 of 7,599, ranked by callers