MCPcopy Create free account

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

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

FunctionTestExecute_Truncation
(t *testing.T)
internal/tool/file_read_test.go:304
FunctionTestExecute_UnrenderedOversizeLineDoesNotReportLineTruncation
(test *testing.T)
internal/tool/file_read_test.go:507
FunctionTestExecute_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
FunctionTestExecutionCommandQuotesArguments
(t *testing.T)
acp/internal/adapter/presentation/progress_format_test.go:40
FunctionTestExecutionDetailsSurviveUpdatesWithoutCommandInChat
(t *testing.T)
acp/internal/adapter/progress_test.go:31
FunctionTestExecutionStatsFromCLIJSON
(t *testing.T)
acp/internal/adapter/presentation/progress_format_test.go:70
FunctionTestExpandBraces_MultipleOptions
(t *testing.T)
internal/config/rules/system_rules_test.go:39
FunctionTestExpandBraces_NoBraces
(t *testing.T)
internal/config/rules/system_rules_test.go:19
FunctionTestExpandBraces_SingleGroup
(t *testing.T)
internal/config/rules/system_rules_test.go:26
FunctionTestExpandBraces_UnclosedBrace
(t *testing.T)
internal/config/rules/system_rules_test.go:52
FunctionTestExpandSessionKeyInBody
(t *testing.T)
internal/llm/sessionkey_test.go:170
FunctionTestExpandSessionKeyInHeaders
(t *testing.T)
internal/llm/sessionkey_test.go:144
FunctionTestExplainErrorClassifiesBedrockFailures
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
FunctionTestExplainErrorLeavesNonBedrockErrorsAlone
TestExplainErrorLeavesNonBedrockErrorsAlone keeps the diagnosis scoped: every other protocol shares this client type.
internal/llm/bedrock_test.go:492
FunctionTestExplainErrorNamesTheBearerTokenVariable
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
FunctionTestExplicitPlanConsent
(t *testing.T)
internal/chatgptauth/recovery_test.go:94
FunctionTestExportSession_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
FunctionTestExportSession_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
FunctionTestExportSession_Variants
(t *testing.T)
internal/viewer/export_test.go:80
FunctionTestExtFromPath
(t *testing.T)
internal/scan/coverage_test.go:312
FunctionTestExtFromPath
(t *testing.T)
internal/agent/agent_test.go:379
FunctionTestExtraEnumCaseCompatibility
(t *testing.T)
acp/internal/contract/intent_test.go:369
FunctionTestExtraHeadersAndBody
(t *testing.T)
acp/internal/intent/llm/client_test.go:305
FunctionTestExtractCodeBlock
(t *testing.T)
internal/diff/relocation_test.go:275
FunctionTestExtractSideLines_DivergentStartLines
(t *testing.T)
internal/diff/resolver_test.go:388
FunctionTestExtractSideLines_NewSide
--------------------------------------------------------------------------- extractSideLines unit tests ----------------------------------------------
internal/diff/resolver_test.go:326
FunctionTestExtractSideLines_OldSide
(t *testing.T)
internal/diff/resolver_test.go:357
FunctionTestExtractSideLines_OnlyAdded
(t *testing.T)
internal/diff/resolver_test.go:424
FunctionTestExtractSideLines_OnlyDeleted
(t *testing.T)
internal/diff/resolver_test.go:445
FunctionTestExtractText_ContentBlocks
(t *testing.T)
internal/llm/message_test.go:88
FunctionTestExtractText_Default
(t *testing.T)
internal/llm/message_test.go:115
FunctionTestExtractText_NestedContentBlocks
(t *testing.T)
internal/llm/message_test.go:98
FunctionTestExtractText_NilContent
(t *testing.T)
internal/llm/message_test.go:122
FunctionTestExtractText_String
(t *testing.T)
internal/llm/message_test.go:81
FunctionTestExtractTopLevelJSON
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
FunctionTestFail
(t *testing.T)
internal/tool/response_message_test.go:21
FunctionTestFailedDifferentClassErrorsAndKeepsFirst
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
FunctionTestFailedPlusWaivedIsPartial
A failed + waived + completed mix still has an unresolved failure -> partial.
internal/session/manifest_test.go:286
FunctionTestFailedSameClassIsIdempotent
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
FunctionTestFileFilter_CaseInsensitive
(t *testing.T)
internal/config/rules/system_rules_test.go:790
FunctionTestFileFilter_IsUserExcluded
(t *testing.T)
internal/config/rules/system_rules_test.go:734
FunctionTestFileFilter_IsUserIncluded
(t *testing.T)
internal/config/rules/system_rules_test.go:759
FunctionTestFileFilter_IsUserIncluded_EmptyInclude
(t *testing.T)
internal/config/rules/system_rules_test.go:783
FunctionTestFileFindFallbackUsesAuthorizedNames
(test *testing.T)
internal/behaviortask/scope_regression_test.go:96
FunctionTestFileFindPreservesWhitespacePaths
(test *testing.T)
internal/behaviortask/scope_regression_test.go:66
FunctionTestFileFindProvider_Tool
(t *testing.T)
internal/tool/file_find_test.go:99
FunctionTestFileFind_BasenamePrecisionAndFallback
(t *testing.T)
internal/tool/file_find_test.go:308
FunctionTestFileFind_BlankQuery
(t *testing.T)
internal/tool/file_find_test.go:106
FunctionTestFileFind_CaseSensitive
(t *testing.T)
internal/tool/file_find_test.go:238
FunctionTestFileFind_GitRepo_CommitMode
(t *testing.T)
internal/tool/file_find_test.go:170
FunctionTestFileFind_GitRepo_StarlarkBuildFiles
(t *testing.T)
internal/tool/file_find_test.go:191
FunctionTestFileFind_GitRepo_WithRunner
(t *testing.T)
internal/tool/file_find_test.go:224
FunctionTestFileFind_GitRepo_WorkspaceMode
(t *testing.T)
internal/tool/file_find_test.go:157
FunctionTestFileFind_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
FunctionTestFileFind_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
FunctionTestFileFind_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
FunctionTestFileFind_PathWithSubdirectory
(t *testing.T)
internal/tool/file_find_test.go:265
FunctionTestFileGroupKey_Multiple
(t *testing.T)
internal/agent/grouping_test.go:234
FunctionTestFileGroupKey_Single
(t *testing.T)
internal/agent/grouping_test.go:227
FunctionTestFileReadDiffAllPathsFoundHasNoError
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
FunctionTestFileReadDiffCapsAvailablePathList
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
FunctionTestFileReadDiffEmptyRequestUnchanged
An empty request stays a malformed call with its own message.
internal/tool/file_read_diff_missing_test.go:124
FunctionTestFileReadDiffEmptySnapshotClaimsNoMode
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
FunctionTestFileReadDiffNamesMissingPathAndAvailablePaths
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
FunctionTestFileReadDiffProvider_Execute
(t *testing.T)
internal/tool/file_read_diff_test.go:35
FunctionTestFileReadDiffProvider_SetDiffMap
(t *testing.T)
internal/tool/file_read_diff_test.go:94
FunctionTestFileReadDiffProvider_Tool
(t *testing.T)
internal/tool/file_read_diff_test.go:104
FunctionTestFileReadDiffReportsPartialHits
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
FunctionTestFileReadProvider_Tool
(t *testing.T)
internal/tool/file_read_test.go:337
FunctionTestFileReadRef
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
FunctionTestFileReader_ReadLines_CommitMode_MissingFile
(t *testing.T)
internal/tool/filereader_read_test.go:192
FunctionTestFileReader_ReadLines_CommitMode_WithRunner
(t *testing.T)
internal/tool/filereader_read_test.go:174
FunctionTestFileReader_ReadLines_Workspace
(t *testing.T)
internal/tool/filereader_read_test.go:73
FunctionTestFileReader_Read_CommitMode
(t *testing.T)
internal/tool/filereader_read_test.go:119
FunctionTestFileReader_Read_CommitMode_MissingFile
(t *testing.T)
internal/tool/filereader_read_test.go:136
FunctionTestFileReader_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
FunctionTestFileReader_Read_CommitMode_WithRunner
(t *testing.T)
internal/tool/filereader_read_test.go:147
FunctionTestFileReader_Read_CommitMode_WithRunner_MissingFile
(t *testing.T)
internal/tool/filereader_read_test.go:162
FunctionTestFileReader_Read_PathTraversal
(t *testing.T)
internal/tool/filereader_read_test.go:43
FunctionTestFileReader_Read_SubdirectoryFile
(t *testing.T)
internal/tool/filereader_read_test.go:203
FunctionTestFileReader_Read_SymlinkOutsideRepo
(t *testing.T)
internal/tool/filereader_read_test.go:53
FunctionTestFileReader_Read_Workspace
(t *testing.T)
internal/tool/filereader_read_test.go:17
FunctionTestFileReader_Read_WorkspaceNotFound
(t *testing.T)
internal/tool/filereader_read_test.go:34
FunctionTestFileURLRoundTrip
(t *testing.T)
acp/internal/adapter/workspace/fileurl_test.go:13
FunctionTestFileURLRoundTripNonASCII
(t *testing.T)
acp/internal/adapter/workspace/fileurl_test.go:41
FunctionTestFinalManifest
(t *testing.T)
internal/session/final_manifest_test.go:8
FunctionTestFinalProgressIncludesStatsOnlyInDetails
(t *testing.T)
acp/internal/adapter/progress_test.go:204
FunctionTestFinalResultSendFailure
(t *testing.T)
acp/internal/adapter/output_test.go:68
FunctionTestFinalizeDecisionOrder
(t *testing.T)
internal/llm/retry_report_test.go:128
FunctionTestFinalizeFilesReviewedUsesManifestSelectedPaths
(t *testing.T)
internal/session/history_test.go:76
FunctionTestFinalizeNilReceiver
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
FunctionTestFinalizeRejectsEmptyRunID
Finalize rejects an empty run_id.
internal/session/manifest_test.go:640
FunctionTestFinalizeRejectsMissingMode
Finalize rejects a missing/invalid input mode rather than emitting an invalid v1 manifest.
internal/session/manifest_test.go:594
FunctionTestFinalizeReplaysWriteErrorOnEveryCall
TestFinalizeReplaysWriteErrorOnEveryCall verifies that every call observes the cached write error instead of a later call falsely reporting success.
internal/session/persist_test.go:377
FunctionTestFinalizeRequestWithPanicSentinel
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
FunctionTestFinalizeReturnsOwnedExcludedSlice
(t *testing.T)
internal/session/manifest_test.go:997
FunctionTestFinalizeReturnsOwnedSlices
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
FunctionTestFinalizeSurfacesWriteError
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
FunctionTestFinalizeSurfacesWriterCreationErrorWithoutStdout
(t *testing.T)
internal/session/persist_test.go:310
FunctionTestFinalizeSweepsUndecidedToUnknown
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
← previousnext →4,201–4,300 of 7,599, ranked by callers