Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,633 in github.com/alibaba/open-code-review
⨍
Functions
7,633
◇
Types & classes
817
Function
TestReadLines_Disk_AbsolutePathStaysUnderRepo
(t *testing.T)
internal/tool/file_read_test.go:212
Function
TestReadLines_Disk_AllowsParentSegmentWithinRepo
(t *testing.T)
internal/tool/file_read_test.go:195
Function
TestReadLines_Disk_AllowsSymlinkInsideRepo
(t *testing.T)
internal/tool/file_read_test.go:403
Function
TestReadLines_Disk_EmptyFile
(t *testing.T)
internal/tool/file_read_test.go:75
Function
TestReadLines_Disk_FullFile
(t *testing.T)
internal/tool/file_read_test.go:26
Function
TestReadLines_Disk_MissingFilePreservesReadError
(t *testing.T)
internal/tool/file_read_test.go:233
Function
TestReadLines_Disk_NoTrailingNewline
(t *testing.T)
internal/tool/file_read_test.go:133
Function
TestReadLines_Disk_RejectsParentTraversal
(t *testing.T)
internal/tool/file_read_test.go:171
Function
TestReadLines_Disk_RejectsSymlinkOutsideRepo
(t *testing.T)
internal/tool/file_read_test.go:379
Function
TestReadLines_Disk_StartBeyondEOF
(t *testing.T)
internal/tool/file_read_test.go:93
Function
TestReadLines_Disk_TrailingNewline
(t *testing.T)
internal/tool/file_read_test.go:111
Function
TestReadLines_Disk_Window
(t *testing.T)
internal/tool/file_read_test.go:51
Function
TestReadLines_GitShow_Window
(t *testing.T)
internal/tool/file_read_test.go:152
Function
TestReadRuleFileSafe_ConfineRejectsOutside
TestReadRuleFileSafe_ConfineRejectsOutside verifies the confinement check itself.
internal/config/rules/system_rules_test.go:1940
Function
TestReadRuleFileSafe_Missing
(t *testing.T)
internal/config/rules/system_rules_test.go:1770
Function
TestReadRuleFileSafe_NormalFile
── readRuleFileSafe tests ──
internal/config/rules/system_rules_test.go:1727
Function
TestReadRuleFileSafe_TooLarge
(t *testing.T)
internal/config/rules/system_rules_test.go:1756
Function
TestReadRuleFileSafe_UnsupportedExt
(t *testing.T)
internal/config/rules/system_rules_test.go:1743
Function
TestReadWithLivenessDuringFinalize
(t *testing.T)
internal/session/list_test.go:444
Function
TestReadWorkspaceFileForDiffReadsInternalSymlink
(t *testing.T)
internal/diff/workspace_file_test.go:132
Function
TestReadWorkspaceFileForDiffReadsRegularFile
(t *testing.T)
internal/diff/workspace_file_test.go:42
Function
TestReadWorkspaceFileForDiffRejectsAbsolutePath
(t *testing.T)
internal/diff/workspace_file_test.go:29
Function
TestReadWorkspaceFileForDiffRejectsDirectory
(t *testing.T)
internal/diff/workspace_file_test.go:73
Function
TestReadWorkspaceFileForDiffRejectsNonexistentFile
(t *testing.T)
internal/diff/workspace_file_test.go:153
Function
TestReadWorkspaceFileForDiffRejectsParentSymlinkEscape
(t *testing.T)
internal/diff/workspace_file_test.go:88
Function
TestReadWorkspaceFileForDiffRejectsPathTraversal
(t *testing.T)
internal/diff/workspace_file_test.go:61
Function
TestReadWorkspaceFileForDiffReturnsSymlinkTarget
(t *testing.T)
internal/diff/workspace_file_test.go:108
Function
TestReadWorkspaceFileForDiffWithLimit
(t *testing.T)
internal/diff/workspace_file_test.go:14
Function
TestRealBinaryUnreadStdoutExits
(t *testing.T)
acp/cmd/ocr-acp/stdio_test.go:21
Function
TestRealEndpointToolCall
TestRealEndpointToolCall is opt-in because it calls a real, configured endpoint. The core regression never depends on it.
acp/internal/intent/llm/real_llm_test.go:17
Function
TestRealLatestCommitIntent
This optional semantic check sends only synthetic requests through the real parser prompt. It neither sends repository content nor starts an OCR revie
acp/internal/intent/llm/real_llm_test.go:48
Function
TestRealOCRBinaryScanMultiplePaths
(t *testing.T)
acp/internal/contract/real_cli_test.go:123
Function
TestRealOCRReviewShapeDecodes
(t *testing.T)
acp/internal/contract/real_cli_test.go:73
Function
TestRealOCRScanShapeDecodes
(t *testing.T)
acp/internal/contract/real_cli_test.go:107
Function
TestRecordAttemptAcceptsUnclassifiedSuccessStatus
The guard keys off the same boundary as classifyAttempt, so a 2xx never trips it: an unclassified 200 is the normal success path, and an unclassified
internal/llm/retry_report_test.go:313
Function
TestRecordAttemptDerivesTimings
Both durations are derived from the observed timestamps, so a caller cannot report a backoff it never measured. The first attempt has no predecessor a
internal/llm/retry_report_test.go:232
Function
TestRecordAttemptDropsRequestsWithoutIdentity
(t *testing.T)
internal/llm/retry_report_test.go:324
Function
TestRecordAttemptFloorsInvertedTimestamps
Timestamps from time.Now carry a monotonic reading and cannot invert, so this only guards hand-built times. It still has to hold: a negative duration
internal/llm/retry_report_test.go:264
Function
TestRecordAttemptNumbersAndDerivesOutcome
(t *testing.T)
internal/llm/retry_report_test.go:204
Function
TestRecordAttemptRejectsUnclassifiedErrorStatus
An observer that reports a non-2xx status without classifying it contradicts the strongest fact it had. The failure mode this closes is silence, not n
internal/llm/retry_report_test.go:287
Function
TestRecordFunctions_DisabledTelemetry
(t *testing.T)
internal/telemetry/metrics_test.go:14
Function
TestRecordFunctions_EnabledTelemetry
(t *testing.T)
internal/telemetry/metrics_test.go:35
Function
TestRecordLLMResult_Error
(t *testing.T)
internal/telemetry/span_test.go:167
Function
TestRecordLLMResult_NilSpan
(t *testing.T)
internal/telemetry/span_test.go:174
Function
TestRecordLLMResult_Success
(t *testing.T)
internal/telemetry/span_test.go:160
Function
TestRecordMetrics_ConcurrentFirstUse
The review fans out per-file goroutines (--concurrency, default 8) that record LLM and tool metrics, so the first use of the metric handles is concurr
internal/telemetry/metrics_test.go:71
Function
TestRecordReviewItem_EmptyFilePathUsesNewPath
TestRecordReviewItem_EmptyFilePathUsesNewPath covers the filePath == "" → filePath = newPath branch of each checkpoint recorder. Without persistence t
internal/session/list_more_test.go:75
Function
TestRecordReviewItem_NilReceiver
TestRecordReviewItem_NilReceiver covers the sh == nil guard on all three checkpoint recorders (no panic, no-op).
internal/session/list_more_test.go:65
Function
TestRecordToItem
TestRecordToItem covers the non-item type (returns false) and the empty-FilePath fallback to NewPath for a recognized item record.
internal/session/list_error_test.go:46
Function
TestRecordToolCall
(t *testing.T)
internal/llmloop/runner_test.go:109
Function
TestRecordToolResult_Error
(t *testing.T)
internal/telemetry/span_test.go:136
Function
TestRecordToolResult_NilSpan
(t *testing.T)
internal/telemetry/span_test.go:143
Function
TestRecordToolResult_Success
(t *testing.T)
internal/telemetry/span_test.go:129
Function
TestRecordUsage
(t *testing.T)
internal/llmloop/runner_test.go:149
Function
TestRecordWarning
(t *testing.T)
internal/llmloop/runner_test.go:91
Function
TestRecordingTelemetryIgnoresOTLPEnvironment
(t *testing.T)
internal/scan/trace_parent_test.go:76
Function
TestRecordingTelemetryIgnoresOTLPEnvironment
(t *testing.T)
internal/agent/trace_parent_test.go:87
Function
TestRedactURLDropsUserInfoAndQuery
(t *testing.T)
acp/internal/intent/llm/resolve_test.go:151
Function
TestRefreshCommitAfterCancellation
(t *testing.T)
internal/chatgptauth/recovery_test.go:24
Function
TestRefreshFailuresAndCancellation
(t *testing.T)
internal/chatgptauth/lifecycle_test.go:142
Function
TestRefreshModelSelectionAfterAdd
(t *testing.T)
cmd/opencodereview/provider_tui_rollback_test.go:211
Function
TestRefreshRecoveryAfterVerificationFailure
(t *testing.T)
internal/chatgptauth/refresh_recovery_test.go:17
Function
TestRefreshRejectsIncompleteRotation
(t *testing.T)
internal/chatgptauth/auth_test.go:310
Function
TestRefreshRotationAndConcurrency
(t *testing.T)
internal/chatgptauth/auth_test.go:281
Function
TestRegisterAll_AllowedFilter
(t *testing.T)
internal/mcp/provider_test.go:44
Function
TestRegisterAll_Basic
(t *testing.T)
internal/mcp/provider_test.go:27
Function
TestRegisterAll_SkipsDuplicateTools
(t *testing.T)
internal/mcp/provider_test.go:94
Function
TestRegisterAll_SkipsReservedTools
(t *testing.T)
internal/mcp/provider_test.go:66
Function
TestRegisterAll_WarnsUnmatchedAllowed
(t *testing.T)
internal/mcp/provider_test.go:113
Function
TestRegisterAnalysisNamesInReview
(t *testing.T)
internal/mcp/provider_test.go:84
Function
TestRegisterExcludedAfterSealErrors
(t *testing.T)
internal/session/manifest_test.go:970
Function
TestRegisterExcludedValidation
(t *testing.T)
internal/session/manifest_test.go:920
Function
TestRegistryModelsForProvider
(t *testing.T)
cmd/opencodereview/provider_tui_rollback_test.go:14
Function
TestRegistry_Freeze_PanicsOnRegister
(t *testing.T)
internal/tool/definitions_test.go:71
Function
TestRegistry_GetAfterFreeze
(t *testing.T)
internal/tool/definitions_test.go:83
Function
TestRegistry_ProviderInterface
(t *testing.T)
internal/tool/definitions_test.go:142
Function
TestRegistry_RegisterAndGet
(t *testing.T)
internal/tool/definitions_test.go:52
Function
TestRejectClearsPending
(t *testing.T)
acp/internal/intent/state_test.go:75
Function
TestRejectedArtifactDirectoryIsNotPublished
(test *testing.T)
cmd/opencodereview/analysis_test.go:143
Function
TestRejectedGuidancePreservesTerminalFailures
(t *testing.T)
acp/internal/adapter/prompt_test.go:17
Function
TestReleaseYmlMatchesURLPattern
(t *testing.T)
internal/release/asset_naming_test.go:91
Function
TestRelocateAcrossFiles_DeclinesWhenAbsent
(t *testing.T)
internal/diff/relocate_across_files_test.go:90
Function
TestRelocateAcrossFiles_DeclinesWhenAmbiguous
(t *testing.T)
internal/diff/relocate_across_files_test.go:64
Function
TestRelocateAcrossFiles_RefilesToImplementation
(t *testing.T)
internal/diff/relocate_across_files_test.go:43
Function
TestRelocateAcrossFiles_SkipsOwnFileAndEmptyInputs
(t *testing.T)
internal/diff/relocate_across_files_test.go:103
Function
TestRemoteIdentity
(t *testing.T)
internal/diff/git_resolve_test.go:197
Function
TestRemoveModels
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:202
Function
TestRenderComment_BadgeInline
TestRenderComment_BadgeInline verifies the badge is colorized and rendered inline with the first line of the comment content.
cmd/opencodereview/output_test.go:58
Function
TestRenderComment_ColorEmitsEscapes
TestRenderComment_ColorEmitsEscapes is the paired positive case: a real terminal still gets the styled render.
cmd/opencodereview/output_color_test.go:55
Function
TestRenderComment_ContentOnly
(t *testing.T)
cmd/opencodereview/output_helpers_test.go:632
Function
TestRenderComment_EmptyContentNoDiff
(t *testing.T)
cmd/opencodereview/output_helpers_test.go:623
Function
TestRenderComment_NoColorIsPlain
TestRenderComment_NoColorIsPlain is the regression test for issue #682: piping review output must not emit ANSI escape sequences.
cmd/opencodereview/output_color_test.go:32
Function
TestRenderComment_WithDiff
(t *testing.T)
cmd/opencodereview/output_helpers_test.go:644
Function
TestRenderKotlin
(t *testing.T)
internal/llm/gen/kotlin_test.go:34
Function
TestRenderListName_Active
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:189
Function
TestRenderListName_Inactive
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:196
Function
TestRenderMarkdown
(test *testing.T)
cmd/opencodereview/markdown_test.go:20
Function
TestRenderMarkdownCodeBlockBackslashes
(test *testing.T)
cmd/opencodereview/markdown_test.go:79
Function
TestRenderMarkdownCodeBlockBackslashesMixedContent
(test *testing.T)
cmd/opencodereview/markdown_test.go:111
Function
TestRenderMarkdownCodeSpanEntities
(test *testing.T)
cmd/opencodereview/markdown_test.go:48
← previous
next →
5,501–5,600 of 7,633, ranked by callers