MCPcopy Create free account

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

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

FunctionTestBuildGrepArgs_FixedString
(t *testing.T)
internal/tool/code_search_test.go:96
FunctionTestBuildGrepArgs_NoIndex
(t *testing.T)
internal/tool/code_search_test.go:816
FunctionTestBuildGrepArgs_PatternStartingWithDash
(t *testing.T)
internal/tool/code_search_test.go:64
FunctionTestBuildGrepArgs_PerlRegexp
(t *testing.T)
internal/tool/code_search_test.go:88
FunctionTestBuildGrepArgs_RejectsOptionLikeRef
(t *testing.T)
internal/tool/code_search_test.go:45
FunctionTestBuildGrepArgs_WorkspaceMode
(t *testing.T)
internal/tool/code_search_test.go:20
FunctionTestBuildGroupFilterCommentsJSON
TestBuildGroupFilterCommentsJSON covers the group-level serialization: the filter sees one flat, globally indexed list spanning every file in the grou
internal/agent/agent_test.go:125
FunctionTestBuildGroupingIndex
(t *testing.T)
internal/viewer/store_test.go:24
FunctionTestBuildGroupingIndex_IgnoresSystemMessage
(t *testing.T)
internal/viewer/store_test.go:61
FunctionTestBuildLifetime
(t *testing.T)
acp/internal/testutil/stub_test.go:16
FunctionTestBuildMessageXML
(t *testing.T)
internal/llmloop/compression_test.go:264
FunctionTestBuildMessageXML
(t *testing.T)
internal/agent/util_test.go:121
FunctionTestBuildOpenAIParams_AllRoles
TestBuildOpenAIParams_AllRoles exercises every message-role branch plus the tools/max-tokens/temperature options in buildOpenAIParams.
internal/llm/client_params_test.go:12
FunctionTestBuildOpenAIParams_Minimal
TestBuildOpenAIParams_Minimal verifies that optional fields stay unset when the request omits tools, max tokens, and temperature.
internal/llm/client_params_test.go:57
FunctionTestBuildOpenAIParams_ToolChoice
TestBuildOpenAIParams_ToolChoice locks the explicit tool_choice mapping for callers that request it. openai.ChatCompletionToolChoiceOptionUnionParam s
internal/llm/client_params_test.go:77
FunctionTestBuildReLocationMessages_NilOrEmptyTask
(t *testing.T)
internal/diff/relocation_test.go:205
FunctionTestBuildReLocationMessages_Rendering
TestBuildReLocationMessages_Rendering pins what the split moved out of ReLocateComment: the prompt the model receives, byte for byte. Splitting the fu
internal/diff/relocation_test.go:178
FunctionTestBuildResponsesParams_AssistantTextPlusToolCalls
(t *testing.T)
internal/llm/responses_client_test.go:168
FunctionTestBuildResponsesParams_MaxTokensAndTemperature
(t *testing.T)
internal/llm/responses_client_test.go:315
FunctionTestBuildResponsesParams_NoInstructionsWhenNoSystem
(t *testing.T)
internal/llm/responses_client_test.go:94
FunctionTestBuildResponsesParams_StoreAndCacheKey
(t *testing.T)
internal/llm/responses_client_test.go:275
FunctionTestBuildResponsesParams_SystemToInstructions
(t *testing.T)
internal/llm/responses_client_test.go:67
FunctionTestBuildResponsesParams_ToolCallItems
(t *testing.T)
internal/llm/responses_client_test.go:114
FunctionTestBuildResponsesParams_ToolChoice
TestBuildResponsesParams_ToolChoice locks the explicit tool_choice mapping. ChatRequest.ToolChoice="required" must become responses.ToolChoiceOptionsR
internal/llm/responses_client_test.go:242
FunctionTestBuildResponsesParams_Tools
(t *testing.T)
internal/llm/responses_client_test.go:197
FunctionTestBuildReviewArgs
(t *testing.T)
acp/internal/contract/intent_test.go:11
FunctionTestBuildReviewArgsExtraWhitelist
TestBuildReviewArgsExtraWhitelist covers the flags that must not be forwardable from a caller, plus the value validation on the ones that may.
acp/internal/contract/intent_test.go:216
FunctionTestBuildReviewArgsRejectsNilAndContradictory
TestBuildReviewArgsRejectsNilAndContradictory pins the mode exclusivity: a workspace intent must not carry range/commit fields, and vice versa. Silent
acp/internal/contract/intent_test.go:324
FunctionTestBuildScanArgs
(t *testing.T)
acp/internal/contract/intent_test.go:102
FunctionTestBuildScanArgsExtraWhitelist
TestBuildScanArgsExtraWhitelist is the scan counterpart. The whitelists differ between commands, so --effort is rejected here and accepted on review.
acp/internal/contract/intent_test.go:277
FunctionTestBuildScanArgsRejectsNil
(t *testing.T)
acp/internal/contract/intent_test.go:347
FunctionTestBuildSummaryCommentsList_TruncatesAndOneLines
(t *testing.T)
internal/scan/agent_test.go:146
FunctionTestBuildSummaryCommentsList_TruncatesOnRuneBoundary
(t *testing.T)
internal/scan/agent_test.go:172
FunctionTestBuildToolInputSchema
TestBuildToolInputSchema covers properties, required filtering (non-string entries dropped), and extra-field passthrough.
internal/llm/client_params_test.go:243
FunctionTestBuildToolInputSchema_Empty
TestBuildToolInputSchema_Empty ensures a bare schema stays empty.
internal/llm/client_params_test.go:267
FunctionTestBuildToolRegistry
(t *testing.T)
cmd/opencodereview/git_test.go:185
FunctionTestBuildUserPromptWithoutState
(t *testing.T)
acp/internal/intent/tool_test.go:47
FunctionTestBuiltinToolProvider
(t *testing.T)
internal/tool/stub_test.go:29
FunctionTestCLIReferenceDocumentsSessionCompare
(t *testing.T)
cmd/opencodereview/cli_reference_compare_docs_test.go:13
FunctionTestCLIReferenceDocumentsSessionExport
(t *testing.T)
cmd/opencodereview/cli_reference_compare_docs_test.go:35
FunctionTestCLIReferenceDocumentsSessionRm
(t *testing.T)
cmd/opencodereview/cli_reference_compare_docs_test.go:122
FunctionTestCLIReferenceUsesSubtaskUnit
(t *testing.T)
cmd/opencodereview/cli_reference_compare_docs_test.go:57
FunctionTestCallGroupingLLM_EmptyResponse
(t *testing.T)
internal/agent/grouping_test.go:514
FunctionTestCallGroupingLLM_UsesTemplateMaxTokens
TestCallGroupingLLM_UsesTemplateMaxTokens guards against reintroducing the hardcoded MaxTokens: 4096 this replaced: a small, task-specific cap left no
internal/agent/grouping_test.go:532
FunctionTestCallToolPreservesEndpointQueryAndEscapedPath
(t *testing.T)
acp/internal/intent/llm/client_test.go:31
FunctionTestCallToolUnsupportedProtocol
(t *testing.T)
acp/internal/intent/llm/client_test.go:335
FunctionTestCallbackMalformedQueryDoesNotExchangeCode
(t *testing.T)
internal/chatgptauth/lifecycle_test.go:441
FunctionTestCallbackOneTimeAndWrongMethod
(t *testing.T)
internal/chatgptauth/lifecycle_test.go:400
FunctionTestCancelClearsIdleClarification
(t *testing.T)
acp/internal/adapter/lifecycle_test.go:173
FunctionTestCancelDuringParsing
(t *testing.T)
acp/internal/adapter/lifecycle_test.go:94
FunctionTestCancelPendingCompression_NilJob
(t *testing.T)
internal/llmloop/runner_test.go:181
FunctionTestCancelPendingCompression_WithJob
(t *testing.T)
internal/llmloop/runner_test.go:187
FunctionTestCancellationAtStartBoundaryDoesNotStartOCR
(t *testing.T)
acp/internal/orchestrator/termination_test.go:185
FunctionTestCanonicalPathResolvesSymlink
(t *testing.T)
internal/pathutil/path_test.go:39
FunctionTestCanonicalPath_NestedSymlink
(t *testing.T)
internal/pathutil/path_test.go:92
FunctionTestCanonicalPath_NonExistentPath
(t *testing.T)
internal/pathutil/path_test.go:60
FunctionTestCanonicalPath_RelativePath
(t *testing.T)
internal/pathutil/path_test.go:67
FunctionTestCanonicalRemote
(t *testing.T)
internal/diff/git_resolve_test.go:161
FunctionTestCatalogErrorBoundsAndShapes
(t *testing.T)
internal/chatgptauth/api_error_test.go:21
FunctionTestCatalogRequestFailurePaths
(t *testing.T)
internal/chatgptauth/api_error_test.go:48
FunctionTestCategoryCounts_NormalizesUnknownCategories
(t *testing.T)
internal/viewer/server_startserver_test.go:258
FunctionTestChatGPTAuthCLIValidation
(t *testing.T)
cmd/opencodereview/chatgpt_auth_test.go:15
FunctionTestChatGPTAuthLogoutEmpty
(t *testing.T)
cmd/opencodereview/chatgpt_auth_test.go:39
FunctionTestChatGPTAuthStatusEmpty
(t *testing.T)
cmd/opencodereview/chatgpt_auth_test.go:29
FunctionTestChatGPTCapabilityStatus
(t *testing.T)
internal/llm/chatgpt_roundtrip_test.go:150
FunctionTestChatGPTCommandLifecycle
(t *testing.T)
cmd/opencodereview/chatgpt_auth_lifecycle_test.go:39
FunctionTestChatGPTCommandStoreErrors
(t *testing.T)
cmd/opencodereview/chatgpt_auth_lifecycle_test.go:178
FunctionTestChatGPTEnablePlanCLI
(t *testing.T)
cmd/opencodereview/chatgpt_consent_test.go:16
FunctionTestChatGPTExplicitModelServerRejection
(t *testing.T)
internal/llm/chatgpt_model_test.go:66
FunctionTestChatGPTFallbackCallAndCredentialFailure
(t *testing.T)
internal/llm/chatgpt_roundtrip_test.go:123
FunctionTestChatGPTLateFailureAndWrongNamespace
(t *testing.T)
internal/llm/chatgpt_roundtrip_test.go:93
FunctionTestChatGPTModelSelectionContract
(t *testing.T)
internal/llm/chatgpt_model_test.go:19
FunctionTestChatGPTNativeToolHTTPRoundTrip
(t *testing.T)
internal/llm/chatgpt_roundtrip_test.go:40
FunctionTestChatGPTRejectsOverrides
(t *testing.T)
internal/llm/chatgpt_test.go:110
FunctionTestChatGPTRequestNamespaceAndReplay
(t *testing.T)
internal/llm/chatgpt_test.go:23
FunctionTestChatGPTResolveEndpoint
(t *testing.T)
internal/llm/chatgpt_test.go:122
FunctionTestChatGPTStatusExpiryAfterSignOut
(t *testing.T)
cmd/opencodereview/chatgpt_auth_lifecycle_test.go:150
FunctionTestChatGPTStreamFailureDetails
(t *testing.T)
internal/llm/responses_client_test.go:916
FunctionTestChatGPTStreamTerminal
(t *testing.T)
internal/llm/chatgpt_test.go:62
FunctionTestChatResponse_Content
(t *testing.T)
internal/llm/message_test.go:129
FunctionTestChatResponse_Content_Empty
(t *testing.T)
internal/llm/message_test.go:141
FunctionTestChatResponse_Content_FallbackToReasoning
(t *testing.T)
internal/llm/message_test.go:148
FunctionTestChatResponse_Content_NilContent
(t *testing.T)
internal/llm/message_test.go:160
FunctionTestChatResponse_Content_StripsThinkTags
(t *testing.T)
internal/llm/message_test.go:171
FunctionTestChatResponse_ToolCalls
(t *testing.T)
internal/llm/message_test.go:249
FunctionTestChatResponse_ToolCalls_Empty
(t *testing.T)
internal/llm/message_test.go:269
FunctionTestChatResponse_VisibleContent_EmptyString
(t *testing.T)
internal/llm/message_test.go:201
FunctionTestChatResponse_VisibleContent_NilContent
(t *testing.T)
internal/llm/message_test.go:190
FunctionTestChatResponse_VisibleContent_NoChoices
(t *testing.T)
internal/llm/message_test.go:183
FunctionTestChatResponse_VisibleContent_NormalText
(t *testing.T)
internal/llm/message_test.go:213
FunctionTestChatResponse_VisibleContent_StripsThinkTags
(t *testing.T)
internal/llm/message_test.go:225
FunctionTestChatResponse_VisibleContent_WhitespaceOnly
(t *testing.T)
internal/llm/message_test.go:237
FunctionTestCheckAPIKeyRequirement
(t *testing.T)
cmd/opencodereview/bedrock_config_test.go:275
FunctionTestCheckDoesNotRewriteArtifact
(t *testing.T)
internal/llm/gen/check_test.go:228
FunctionTestCheckGitVersion
(t *testing.T)
internal/gitcmd/version_test.go:88
FunctionTestCheckGitVersion_Real
(t *testing.T)
internal/gitcmd/version_test.go:134
FunctionTestCheckKotlinNames
(t *testing.T)
internal/llm/gen/kotlin_test.go:51
FunctionTestCheckKotlinPackage
(t *testing.T)
internal/llm/gen/kotlin_test.go:83
FunctionTestCheckMetricErr
(t *testing.T)
internal/telemetry/metrics_test.go:30
FunctionTestCheckPresets
(t *testing.T)
internal/llm/gen/check_test.go:17
← previousnext →3,401–3,500 of 7,169, ranked by callers