Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,484 in github.com/alibaba/open-code-review
⨍
Functions
7,484
◇
Types & classes
809
Function
TestResolveInput_SingleParentCommit
(t *testing.T)
internal/diff/git_resolve_test.go:73
Function
TestResolveInput_UnbornWorkspace
(t *testing.T)
internal/diff/git_resolve_test.go:211
Function
TestResolveInput_Workspace
(t *testing.T)
internal/diff/git_resolve_test.go:144
Function
TestResolveInvalidConfiguration
(test *testing.T)
internal/config/toolsconfig/toolsconfig_test.go:185
Function
TestResolveKeyCmd
(t *testing.T)
internal/llm/keycmd_test.go:15
Function
TestResolveKeyCmd
(t *testing.T)
internal/llm/keycmd_windows_test.go:40
Function
TestResolveKeyCmd_LabelInError
(t *testing.T)
internal/llm/keycmd_test.go:196
Function
TestResolveKeyCmd_LabelInError
(t *testing.T)
internal/llm/keycmd_windows_test.go:150
Function
TestResolveKeyCmd_StdinWired
TestResolveKeyCmd_StdinWired proves the child inherits our stdin: with Stdin left nil, os/exec hands the child /dev/null, `read` sees EOF and prints n
internal/llm/keycmd_test.go:167
Function
TestResolveKeyCmd_StdinWired
TestResolveKeyCmd_StdinWired proves the child inherits our stdin: with Stdin left nil, os/exec hands the child NUL, findstr reads EOF immediately and
internal/llm/keycmd_windows_test.go:121
Function
TestResolveKeyCmd_Timeout
(t *testing.T)
internal/llm/keycmd_test.go:114
Function
TestResolveKeyCmd_Timeout
(t *testing.T)
internal/llm/keycmd_windows_test.go:98
Function
TestResolveKeyCmd_WaitDelayBoundsOrphanHoldingPipe
A grandchild that inherited the stdout pipe keeps it open after the shell exits, which used to block Wait until the grandchild died. WaitDelay bounds
internal/llm/keycmd_test.go:134
Function
TestResolveLang
(t *testing.T)
internal/config/template/template_test.go:493
Function
TestResolveLang
(t *testing.T)
internal/config/testconnection/testconnection_test.go:42
Function
TestResolveLineNumbers_AlreadyResolved
--------------------------------------------------------------------------- ResolveLineNumbers integration tests (additional scenarios) --------------
internal/diff/resolver_test.go:858
Function
TestResolveLineNumbers_DiffMarkerInExistingCode
(t *testing.T)
internal/diff/resolver_test.go:962
Function
TestResolveLineNumbers_EmptyInputs
(t *testing.T)
internal/diff/resolver_test.go:275
Function
TestResolveLineNumbers_FallbackToFileContent
(t *testing.T)
internal/diff/resolver_test.go:95
Function
TestResolveLineNumbers_FallbackToFileContent_AllBlankExistingCode
(t *testing.T)
internal/diff/resolver_test.go:214
Function
TestResolveLineNumbers_FallbackToFileContent_BlankLines
(t *testing.T)
internal/diff/resolver_test.go:123
Function
TestResolveLineNumbers_FallbackToFileContent_CRLF
(t *testing.T)
internal/diff/resolver_test.go:178
Function
TestResolveLineNumbers_FallbackToFileContent_FirstMatchWins
(t *testing.T)
internal/diff/resolver_test.go:196
Function
TestResolveLineNumbers_FallbackToFileContent_LeadingBlanks
(t *testing.T)
internal/diff/resolver_test.go:160
Function
TestResolveLineNumbers_FallbackToFileContent_MultipleBlankLines
(t *testing.T)
internal/diff/resolver_test.go:142
Function
TestResolveLineNumbers_MixedStrategies
(t *testing.T)
internal/diff/resolver_test.go:927
Function
TestResolveLineNumbers_MultiLineHunkMatch
(t *testing.T)
internal/diff/resolver_test.go:65
Function
TestResolveLineNumbers_MultipleCommentsOnSameFile
(t *testing.T)
internal/diff/resolver_test.go:870
Function
TestResolveLineNumbers_NoExistingCode
(t *testing.T)
internal/diff/resolver_test.go:247
Function
TestResolveLineNumbers_NoMatchKeepsZero
(t *testing.T)
internal/diff/resolver_test.go:232
Function
TestResolveLineNumbers_OldPathMapping
(t *testing.T)
internal/diff/resolver_test.go:905
Function
TestResolveLineNumbers_PathNotFound
(t *testing.T)
internal/diff/resolver_test.go:261
Function
TestResolveLineNumbers_SingleLineHunkMatch
(t *testing.T)
internal/diff/resolver_test.go:21
Function
TestResolveLineNumbers_WhitespaceTolerant
(t *testing.T)
internal/diff/resolver_test.go:49
Function
TestResolveMaxTokensPrecedence
(t *testing.T)
cmd/opencodereview/shared_test.go:19
Function
TestResolveOrderedDefinitions
(test *testing.T)
internal/config/toolsconfig/toolsconfig_test.go:117
Function
TestResolveOutputWriter_DirectoryTarget
(t *testing.T)
cmd/opencodereview/output_file_test.go:192
Function
TestResolveOutputWriter_MissingParent
(t *testing.T)
cmd/opencodereview/output_file_test.go:200
Function
TestResolveOutputWriter_SafeByDefaultStripsNonMachineReadable
TestResolveOutputWriter_SafeByDefaultStripsNonMachineReadable pins that any non-machine-readable format (not json/sarif) wraps the writer in stripAnsi
cmd/opencodereview/output_file_test.go:717
Function
TestResolveOutputWriter_Stdout
--- resolveOutputWriter ---
cmd/opencodereview/output_file_test.go:177
Function
TestResolveProviderCaseInsensitive
(t *testing.T)
acp/internal/intent/llm/resolve_test.go:92
Function
TestResolveRepoDir_EmptyUsesWd
(t *testing.T)
cmd/opencodereview/git_test.go:122
Function
TestResolveRepoDir_NotGitRepo
(t *testing.T)
cmd/opencodereview/git_test.go:111
Function
TestResolveRepoDir_ValidGitRepo
(t *testing.T)
cmd/opencodereview/git_test.go:100
Function
TestResolveReviewMaxTools
(t *testing.T)
cmd/opencodereview/review_cmd_test.go:60
Function
TestResolveRuleEntries_AbsolutePath
(t *testing.T)
internal/config/rules/system_rules_test.go:1505
Function
TestResolveRuleEntries_BasicFile
── resolveRuleEntries tests ──
internal/config/rules/system_rules_test.go:1452
Function
TestResolveRuleEntries_EmptyRepoDirAbsolute
(t *testing.T)
internal/config/rules/system_rules_test.go:1815
Function
TestResolveRuleEntries_EmptyRepoDirRelative
(t *testing.T)
internal/config/rules/system_rules_test.go:1803
Function
TestResolveRuleEntries_EmptyRule
(t *testing.T)
internal/config/rules/system_rules_test.go:1560
Function
TestResolveRuleEntries_GlobalRuleFileResolution
(t *testing.T)
internal/config/rules/system_rules_test.go:1832
Function
TestResolveRuleEntries_MarkdownExtension
(t *testing.T)
internal/config/rules/system_rules_test.go:1623
Function
TestResolveRuleEntries_MissingFile
(t *testing.T)
internal/config/rules/system_rules_test.go:1491
Function
TestResolveRuleEntries_MultiLineInline
(t *testing.T)
internal/config/rules/system_rules_test.go:1473
Function
TestResolveRuleEntries_PathTraversalBlocked
── path traversal tests ──
internal/config/rules/system_rules_test.go:1779
Function
TestResolveRuleEntries_ProjectConfinesAbsolutePath
TestResolveRuleEntries_ProjectConfinesAbsolutePath verifies that with a confineRoot (the untrusted project rule layer) an absolute rule path is confin
internal/config/rules/system_rules_test.go:1872
Function
TestResolveRuleEntries_ProjectConfinesSymlinkEscape
TestResolveRuleEntries_ProjectConfinesSymlinkEscape verifies that with confine=true, an in-repo symlink pointing at an out-of-repo file is rejected af
internal/config/rules/system_rules_test.go:1899
Function
TestResolveRuleEntries_ProjectRelativeInsideAllowed
TestResolveRuleEntries_ProjectRelativeInsideAllowed covers the confined relative (non-symlink) path that stays inside the repo.
internal/config/rules/system_rules_test.go:2045
Function
TestResolveRuleEntries_RelativePath
(t *testing.T)
internal/config/rules/system_rules_test.go:1544
Function
TestResolveRuleEntries_SubdirectoryPath
(t *testing.T)
internal/config/rules/system_rules_test.go:1639
Function
TestResolveRuleEntries_SymlinkSafety
(t *testing.T)
internal/config/rules/system_rules_test.go:1579
Function
TestResolveRuleEntries_TooLarge
(t *testing.T)
internal/config/rules/system_rules_test.go:1523
Function
TestResolveRuleEntries_TrustedAbsoluteOutsideAllowed
TestResolveRuleEntries_TrustedAbsoluteOutsideAllowed guards that the trusted layers (confine=false) keep the previous behavior: absolute paths may poi
internal/config/rules/system_rules_test.go:1922
Function
TestResolveRuleEntries_TxtExtension
(t *testing.T)
internal/config/rules/system_rules_test.go:1607
Function
TestResolveUsageCacheCreationTokensPriority
(t *testing.T)
internal/llm/usage_resolver_test.go:108
Function
TestResolveUsageCacheReadPathPriority
(t *testing.T)
internal/llm/usage_resolver_test.go:88
Function
TestResolveUsageOpenAICompatibleCachedTokens
(t *testing.T)
internal/llm/usage_resolver_test.go:8
Function
TestResolveUsageResponsesAPIFieldNames
(t *testing.T)
internal/llm/usage_resolver_test.go:128
Function
TestResolveUsageWrappedAnthropicCompatibleCacheTokens
(t *testing.T)
internal/llm/usage_resolver_test.go:62
Function
TestResolveUsageWrappedCachedTokens
(t *testing.T)
internal/llm/usage_resolver_test.go:34
Function
TestResolveWorkingDir_BareRepoFailsLoudly
TestResolveWorkingDir_BareRepoFailsLoudly guards the #287 fix: a bare repo has no work tree, so `git rev-parse --git-dir` succeeds (isGit=true) but `-
cmd/opencodereview/shared_test.go:259
Function
TestResolveWorkingDir_CurrentDir
(t *testing.T)
cmd/opencodereview/shared_test.go:147
Function
TestResolveWorkingDir_GitRepo
(t *testing.T)
cmd/opencodereview/shared_test.go:272
Function
TestResolveWorkingDir_MonorepoSubdir
TestResolveWorkingDir_MonorepoSubdir reproduces #287: running `ocr review` from a subdirectory of a git repo must anchor RepoDir at the git top-level
cmd/opencodereview/shared_test.go:194
Function
TestResolveWorkingDir_NonExistent
(t *testing.T)
cmd/opencodereview/shared_test.go:182
Function
TestResolveWorkingDir_RequireGitFails
(t *testing.T)
cmd/opencodereview/shared_test.go:174
Function
TestResolve_CaseInsensitive
(t *testing.T)
internal/config/rules/system_rules_test.go:305
Function
TestResolve_CustomRule_DefaultFallback
(t *testing.T)
internal/config/rules/system_rules_test.go:291
Function
TestResolve_CustomRule_FirstMatchWins
(t *testing.T)
internal/config/rules/system_rules_test.go:269
Function
TestResolve_DefaultRules
(t *testing.T)
internal/config/rules/system_rules_test.go:59
Function
TestResolve_FallbackToDefault
(t *testing.T)
internal/config/rules/system_rules_test.go:247
Function
TestResolve_GitHubWorkflows
(t *testing.T)
internal/config/rules/resolve_github_test.go:11
Function
TestResourceRouting
(t *testing.T)
acp/internal/adapter/resources_test.go:128
Function
TestResponseRequestID
(t *testing.T)
internal/llm/retry_observer_test.go:661
Function
TestResponsiveCSS_MetaOverrideComesAfterBase
TestResponsiveCSS_MetaOverrideComesAfterBase guards the cascade for the narrow-screen meta overrides: the selectors are equally specific as the base r
internal/viewer/server_extra_test.go:1598
Function
TestResultRootMatchesCLIOperation
(t *testing.T)
acp/internal/adapter/workspace/root_test.go:14
Function
TestResult_CustomTab_Creating
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1516
Function
TestResult_CustomTab_Editing
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1531
Function
TestResult_CustomTab_OutOfBounds
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1570
Function
TestResult_CustomTab_Selected
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1552
Function
TestResult_ManualTab
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1580
Function
TestResult_ManualTab_MaskedToken
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1597
Function
TestResult_OfficialTab
--- result() tests ---
cmd/opencodereview/provider_tui_funcs_test.go:1498
Function
TestResult_OfficialTab_WithMaskedKey
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1506
Function
TestResumeComparisonEndpoints
(test *testing.T)
internal/session/code_access_test.go:12
Function
TestResumeIgnoresLegacyCodeAccessProfile
(test *testing.T)
internal/session/code_access_test.go:62
Function
TestResumeLineageReachesDiskBeforeFinalize
The round trip above finalizes the session, which flushes on its way out and so cannot tell a buffered record from a persisted one. Lineage exists to
internal/session/resume_identity_test.go:385
Function
TestResumeLineageRoundTripsThroughSessionFile
End-to-end for the event itself: a lineage written by a live session must come back out of the session file through the same reader `ocr session show`
internal/session/resume_identity_test.go:351
Function
TestResumeStateSessionStartKeepsRepoDirWhenCwdEmpty
(t *testing.T)
internal/session/persist_test.go:495
Function
TestResumeStateValidateOptionsRejectsMismatchedMode
(t *testing.T)
internal/session/persist_test.go:479
← previous
next →
5,701–5,800 of 7,484, ranked by callers