MCPcopy Create free account

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

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

FunctionTestReadWorkspaceFileForDiffRejectsParentSymlinkEscape
(t *testing.T)
internal/diff/workspace_file_test.go:88
FunctionTestReadWorkspaceFileForDiffRejectsPathTraversal
(t *testing.T)
internal/diff/workspace_file_test.go:61
FunctionTestReadWorkspaceFileForDiffReturnsSymlinkTarget
(t *testing.T)
internal/diff/workspace_file_test.go:108
FunctionTestReadWorkspaceFileForDiffWithLimit
(t *testing.T)
internal/diff/workspace_file_test.go:14
FunctionTestRealBinaryUnreadStdoutExits
(t *testing.T)
acp/cmd/ocr-acp/stdio_test.go:21
FunctionTestRealEndpointToolCall
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
FunctionTestRealLatestCommitIntent
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
FunctionTestRealOCRBinaryScanMultiplePaths
(t *testing.T)
acp/internal/contract/real_cli_test.go:123
FunctionTestRealOCRReviewShapeDecodes
(t *testing.T)
acp/internal/contract/real_cli_test.go:73
FunctionTestRealOCRScanShapeDecodes
(t *testing.T)
acp/internal/contract/real_cli_test.go:107
FunctionTestRecordAttemptAcceptsUnclassifiedSuccessStatus
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
FunctionTestRecordAttemptDerivesTimings
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
FunctionTestRecordAttemptDropsRequestsWithoutIdentity
(t *testing.T)
internal/llm/retry_report_test.go:324
FunctionTestRecordAttemptFloorsInvertedTimestamps
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
FunctionTestRecordAttemptNumbersAndDerivesOutcome
(t *testing.T)
internal/llm/retry_report_test.go:204
FunctionTestRecordAttemptRejectsUnclassifiedErrorStatus
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
FunctionTestRecordFunctions_DisabledTelemetry
(t *testing.T)
internal/telemetry/metrics_test.go:14
FunctionTestRecordFunctions_EnabledTelemetry
(t *testing.T)
internal/telemetry/metrics_test.go:35
FunctionTestRecordLLMResult_Error
(t *testing.T)
internal/telemetry/span_test.go:167
FunctionTestRecordLLMResult_NilSpan
(t *testing.T)
internal/telemetry/span_test.go:174
FunctionTestRecordLLMResult_Success
(t *testing.T)
internal/telemetry/span_test.go:160
FunctionTestRecordMetrics_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
FunctionTestRecordReviewItem_EmptyFilePathUsesNewPath
TestRecordReviewItem_EmptyFilePathUsesNewPath covers the filePath == "" → filePath = newPath branch of each checkpoint recorder. Without persistence t
internal/session/list_more_test.go:75
FunctionTestRecordReviewItem_NilReceiver
TestRecordReviewItem_NilReceiver covers the sh == nil guard on all three checkpoint recorders (no panic, no-op).
internal/session/list_more_test.go:65
FunctionTestRecordToItem
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
FunctionTestRecordToolCall
(t *testing.T)
internal/llmloop/runner_test.go:109
FunctionTestRecordToolResult_Error
(t *testing.T)
internal/telemetry/span_test.go:136
FunctionTestRecordToolResult_NilSpan
(t *testing.T)
internal/telemetry/span_test.go:143
FunctionTestRecordToolResult_Success
(t *testing.T)
internal/telemetry/span_test.go:129
FunctionTestRecordUsage
(t *testing.T)
internal/llmloop/runner_test.go:149
FunctionTestRecordWarning
(t *testing.T)
internal/llmloop/runner_test.go:91
FunctionTestRecordingTelemetryIgnoresOTLPEnvironment
(t *testing.T)
internal/scan/trace_parent_test.go:76
FunctionTestRecordingTelemetryIgnoresOTLPEnvironment
(t *testing.T)
internal/agent/trace_parent_test.go:87
FunctionTestRedactURLDropsUserInfoAndQuery
(t *testing.T)
acp/internal/intent/llm/resolve_test.go:151
FunctionTestRefreshCommitAfterCancellation
(t *testing.T)
internal/chatgptauth/recovery_test.go:24
FunctionTestRefreshFailuresAndCancellation
(t *testing.T)
internal/chatgptauth/lifecycle_test.go:142
FunctionTestRefreshModelSelectionAfterAdd
(t *testing.T)
cmd/opencodereview/provider_tui_rollback_test.go:211
FunctionTestRefreshRecoveryAfterVerificationFailure
(t *testing.T)
internal/chatgptauth/refresh_recovery_test.go:17
FunctionTestRefreshRejectsIncompleteRotation
(t *testing.T)
internal/chatgptauth/auth_test.go:310
FunctionTestRefreshRotationAndConcurrency
(t *testing.T)
internal/chatgptauth/auth_test.go:281
FunctionTestRegisterAll_AllowedFilter
(t *testing.T)
internal/mcp/provider_test.go:44
FunctionTestRegisterAll_Basic
(t *testing.T)
internal/mcp/provider_test.go:27
FunctionTestRegisterAll_SkipsDuplicateTools
(t *testing.T)
internal/mcp/provider_test.go:94
FunctionTestRegisterAll_SkipsReservedTools
(t *testing.T)
internal/mcp/provider_test.go:66
FunctionTestRegisterAll_WarnsUnmatchedAllowed
(t *testing.T)
internal/mcp/provider_test.go:113
FunctionTestRegisterAnalysisNamesInReview
(t *testing.T)
internal/mcp/provider_test.go:84
FunctionTestRegisterExcludedAfterSealErrors
(t *testing.T)
internal/session/manifest_test.go:970
FunctionTestRegisterExcludedValidation
(t *testing.T)
internal/session/manifest_test.go:920
FunctionTestRegistryModelsForProvider
(t *testing.T)
cmd/opencodereview/provider_tui_rollback_test.go:14
FunctionTestRegistry_Freeze_PanicsOnRegister
(t *testing.T)
internal/tool/definitions_test.go:71
FunctionTestRegistry_GetAfterFreeze
(t *testing.T)
internal/tool/definitions_test.go:83
FunctionTestRegistry_ProviderInterface
(t *testing.T)
internal/tool/definitions_test.go:142
FunctionTestRegistry_RegisterAndGet
(t *testing.T)
internal/tool/definitions_test.go:52
FunctionTestRejectClearsPending
(t *testing.T)
acp/internal/intent/state_test.go:75
FunctionTestRejectedArtifactDirectoryIsNotPublished
(test *testing.T)
cmd/opencodereview/analysis_test.go:141
FunctionTestRejectedGuidancePreservesTerminalFailures
(t *testing.T)
acp/internal/adapter/prompt_test.go:17
FunctionTestReleaseYmlMatchesURLPattern
(t *testing.T)
internal/release/asset_naming_test.go:91
FunctionTestRelocateAcrossFiles_DeclinesWhenAbsent
(t *testing.T)
internal/diff/relocate_across_files_test.go:90
FunctionTestRelocateAcrossFiles_DeclinesWhenAmbiguous
(t *testing.T)
internal/diff/relocate_across_files_test.go:64
FunctionTestRelocateAcrossFiles_RefilesToImplementation
(t *testing.T)
internal/diff/relocate_across_files_test.go:43
FunctionTestRelocateAcrossFiles_SkipsOwnFileAndEmptyInputs
(t *testing.T)
internal/diff/relocate_across_files_test.go:103
FunctionTestRemoteIdentity
(t *testing.T)
internal/diff/git_resolve_test.go:197
FunctionTestRemoveModels
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:202
FunctionTestRenderComment_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
FunctionTestRenderComment_ColorEmitsEscapes
TestRenderComment_ColorEmitsEscapes is the paired positive case: a real terminal still gets the styled render.
cmd/opencodereview/output_color_test.go:55
FunctionTestRenderComment_ContentOnly
(t *testing.T)
cmd/opencodereview/output_helpers_test.go:632
FunctionTestRenderComment_EmptyContentNoDiff
(t *testing.T)
cmd/opencodereview/output_helpers_test.go:623
FunctionTestRenderComment_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
FunctionTestRenderComment_WithDiff
(t *testing.T)
cmd/opencodereview/output_helpers_test.go:644
FunctionTestRenderKotlin
(t *testing.T)
internal/llm/gen/kotlin_test.go:34
FunctionTestRenderListName_Active
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:189
FunctionTestRenderListName_Inactive
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:196
FunctionTestRenderMarkdown
(test *testing.T)
cmd/opencodereview/markdown_test.go:20
FunctionTestRenderMarkdownCodeBlockBackslashes
(test *testing.T)
cmd/opencodereview/markdown_test.go:79
FunctionTestRenderMarkdownCodeBlockBackslashesMixedContent
(test *testing.T)
cmd/opencodereview/markdown_test.go:111
FunctionTestRenderMarkdownCodeSpanEntities
(test *testing.T)
cmd/opencodereview/markdown_test.go:48
FunctionTestRenderMarkdownDelimiterBoundaries
(test *testing.T)
cmd/opencodereview/markdown_test.go:334
FunctionTestRenderMarkdownEntityStyleLiteralRetention
(test *testing.T)
cmd/opencodereview/markdown_test.go:300
FunctionTestRenderMarkdownHeadingColor
(test *testing.T)
cmd/opencodereview/markdown_test.go:39
FunctionTestRenderMarkdownRejectsEntityEncodedStyles
(test *testing.T)
cmd/opencodereview/markdown_test.go:268
FunctionTestRenderMarkdownRetainsStylesAfterSanitizingEntities
(test *testing.T)
cmd/opencodereview/markdown_test.go:320
FunctionTestRenderMarkdownTableBoundaries
(test *testing.T)
cmd/opencodereview/markdown_test.go:229
FunctionTestRenderMarkdownTableLinkRetention
(test *testing.T)
cmd/opencodereview/markdown_test.go:152
FunctionTestRenderMarkdownTableRulesAndAlignment
(test *testing.T)
cmd/opencodereview/markdown_test.go:180
FunctionTestRenderMarkdownTableWrapsByDisplayWidth
(test *testing.T)
cmd/opencodereview/markdown_test.go:200
FunctionTestRenderMarkdownTerminalSafety
(test *testing.T)
cmd/opencodereview/markdown_test.go:249
FunctionTestRenderMarkdownWrapAndRetention
(test *testing.T)
cmd/opencodereview/markdown_test.go:126
FunctionTestRenderMessages
(t *testing.T)
internal/scan/agent_test.go:255
FunctionTestRenderPreservesMetadataAndModelOrder
(t *testing.T)
internal/llm/gen/main_test.go:26
FunctionTestRenderRejectsDuplicateModels
(t *testing.T)
internal/llm/gen/main_test.go:85
FunctionTestRenderTabBar_AllTabs
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1021
FunctionTestRenderTemplate_BadTemplate
(t *testing.T)
internal/viewer/server_extra_test.go:183
FunctionTestRenderTemplate_ExecutionError
(t *testing.T)
internal/viewer/server_extra_test.go:727
FunctionTestRenderTemplate_FilesReviewedUseFileIcon
(t *testing.T)
internal/viewer/server_extra_test.go:882
FunctionTestRenderTemplate_HidesEmptyConversationsSection
(t *testing.T)
internal/viewer/server_extra_test.go:667
FunctionTestRenderTemplate_RendersConversationToolCallDetails
(t *testing.T)
internal/viewer/server_extra_test.go:682
FunctionTestRenderTemplate_ReposSearchIcon
(t *testing.T)
internal/viewer/server_extra_test.go:840
FunctionTestRenderTemplate_ReposTableMockup
(t *testing.T)
internal/viewer/server_extra_test.go:904
FunctionTestRenderTemplate_SecondarySectionsCollapsedByDefault
(t *testing.T)
internal/viewer/server_extra_test.go:628
FunctionTestRenderTemplate_SessionHeaderMockup
(t *testing.T)
internal/viewer/server_extra_test.go:545
← previousnext →5,401–5,500 of 7,484, ranked by callers