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
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:141
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
Function
TestRenderMarkdownDelimiterBoundaries
(test *testing.T)
cmd/opencodereview/markdown_test.go:334
Function
TestRenderMarkdownEntityStyleLiteralRetention
(test *testing.T)
cmd/opencodereview/markdown_test.go:300
Function
TestRenderMarkdownHeadingColor
(test *testing.T)
cmd/opencodereview/markdown_test.go:39
Function
TestRenderMarkdownRejectsEntityEncodedStyles
(test *testing.T)
cmd/opencodereview/markdown_test.go:268
Function
TestRenderMarkdownRetainsStylesAfterSanitizingEntities
(test *testing.T)
cmd/opencodereview/markdown_test.go:320
Function
TestRenderMarkdownTableBoundaries
(test *testing.T)
cmd/opencodereview/markdown_test.go:229
Function
TestRenderMarkdownTableLinkRetention
(test *testing.T)
cmd/opencodereview/markdown_test.go:152
Function
TestRenderMarkdownTableRulesAndAlignment
(test *testing.T)
cmd/opencodereview/markdown_test.go:180
Function
TestRenderMarkdownTableWrapsByDisplayWidth
(test *testing.T)
cmd/opencodereview/markdown_test.go:200
Function
TestRenderMarkdownTerminalSafety
(test *testing.T)
cmd/opencodereview/markdown_test.go:249
Function
TestRenderMarkdownWrapAndRetention
(test *testing.T)
cmd/opencodereview/markdown_test.go:126
Function
TestRenderMessages
(t *testing.T)
internal/scan/agent_test.go:255
Function
TestRenderPreservesMetadataAndModelOrder
(t *testing.T)
internal/llm/gen/main_test.go:26
Function
TestRenderRejectsDuplicateModels
(t *testing.T)
internal/llm/gen/main_test.go:85
Function
TestRenderTabBar_AllTabs
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1021
Function
TestRenderTemplate_BadTemplate
(t *testing.T)
internal/viewer/server_extra_test.go:183
Function
TestRenderTemplate_ExecutionError
(t *testing.T)
internal/viewer/server_extra_test.go:727
Function
TestRenderTemplate_FilesReviewedUseFileIcon
(t *testing.T)
internal/viewer/server_extra_test.go:882
Function
TestRenderTemplate_HidesEmptyConversationsSection
(t *testing.T)
internal/viewer/server_extra_test.go:667
Function
TestRenderTemplate_RendersConversationToolCallDetails
(t *testing.T)
internal/viewer/server_extra_test.go:682
Function
TestRenderTemplate_ReposSearchIcon
(t *testing.T)
internal/viewer/server_extra_test.go:840
Function
TestRenderTemplate_ReposTableMockup
(t *testing.T)
internal/viewer/server_extra_test.go:904
Function
TestRenderTemplate_SecondarySectionsCollapsedByDefault
(t *testing.T)
internal/viewer/server_extra_test.go:628
Function
TestRenderTemplate_SessionHeaderMockup
(t *testing.T)
internal/viewer/server_extra_test.go:545
← previous
next →
5,401–5,500 of 7,484, ranked by callers