Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,169 in github.com/alibaba/open-code-review
⨍
Functions
7,169
◇
Types & classes
774
Function
TestBuildGrepArgs_FixedString
(t *testing.T)
internal/tool/code_search_test.go:96
Function
TestBuildGrepArgs_NoIndex
(t *testing.T)
internal/tool/code_search_test.go:816
Function
TestBuildGrepArgs_PatternStartingWithDash
(t *testing.T)
internal/tool/code_search_test.go:64
Function
TestBuildGrepArgs_PerlRegexp
(t *testing.T)
internal/tool/code_search_test.go:88
Function
TestBuildGrepArgs_RejectsOptionLikeRef
(t *testing.T)
internal/tool/code_search_test.go:45
Function
TestBuildGrepArgs_WorkspaceMode
(t *testing.T)
internal/tool/code_search_test.go:20
Function
TestBuildGroupFilterCommentsJSON
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
Function
TestBuildGroupingIndex
(t *testing.T)
internal/viewer/store_test.go:24
Function
TestBuildGroupingIndex_IgnoresSystemMessage
(t *testing.T)
internal/viewer/store_test.go:61
Function
TestBuildLifetime
(t *testing.T)
acp/internal/testutil/stub_test.go:16
Function
TestBuildMessageXML
(t *testing.T)
internal/llmloop/compression_test.go:264
Function
TestBuildMessageXML
(t *testing.T)
internal/agent/util_test.go:121
Function
TestBuildOpenAIParams_AllRoles
TestBuildOpenAIParams_AllRoles exercises every message-role branch plus the tools/max-tokens/temperature options in buildOpenAIParams.
internal/llm/client_params_test.go:12
Function
TestBuildOpenAIParams_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
Function
TestBuildOpenAIParams_ToolChoice
TestBuildOpenAIParams_ToolChoice locks the explicit tool_choice mapping for callers that request it. openai.ChatCompletionToolChoiceOptionUnionParam s
internal/llm/client_params_test.go:77
Function
TestBuildReLocationMessages_NilOrEmptyTask
(t *testing.T)
internal/diff/relocation_test.go:205
Function
TestBuildReLocationMessages_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
Function
TestBuildResponsesParams_AssistantTextPlusToolCalls
(t *testing.T)
internal/llm/responses_client_test.go:168
Function
TestBuildResponsesParams_MaxTokensAndTemperature
(t *testing.T)
internal/llm/responses_client_test.go:315
Function
TestBuildResponsesParams_NoInstructionsWhenNoSystem
(t *testing.T)
internal/llm/responses_client_test.go:94
Function
TestBuildResponsesParams_StoreAndCacheKey
(t *testing.T)
internal/llm/responses_client_test.go:275
Function
TestBuildResponsesParams_SystemToInstructions
(t *testing.T)
internal/llm/responses_client_test.go:67
Function
TestBuildResponsesParams_ToolCallItems
(t *testing.T)
internal/llm/responses_client_test.go:114
Function
TestBuildResponsesParams_ToolChoice
TestBuildResponsesParams_ToolChoice locks the explicit tool_choice mapping. ChatRequest.ToolChoice="required" must become responses.ToolChoiceOptionsR
internal/llm/responses_client_test.go:242
Function
TestBuildResponsesParams_Tools
(t *testing.T)
internal/llm/responses_client_test.go:197
Function
TestBuildReviewArgs
(t *testing.T)
acp/internal/contract/intent_test.go:11
Function
TestBuildReviewArgsExtraWhitelist
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
Function
TestBuildReviewArgsRejectsNilAndContradictory
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
Function
TestBuildScanArgs
(t *testing.T)
acp/internal/contract/intent_test.go:102
Function
TestBuildScanArgsExtraWhitelist
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
Function
TestBuildScanArgsRejectsNil
(t *testing.T)
acp/internal/contract/intent_test.go:347
Function
TestBuildSummaryCommentsList_TruncatesAndOneLines
(t *testing.T)
internal/scan/agent_test.go:146
Function
TestBuildSummaryCommentsList_TruncatesOnRuneBoundary
(t *testing.T)
internal/scan/agent_test.go:172
Function
TestBuildToolInputSchema
TestBuildToolInputSchema covers properties, required filtering (non-string entries dropped), and extra-field passthrough.
internal/llm/client_params_test.go:243
Function
TestBuildToolInputSchema_Empty
TestBuildToolInputSchema_Empty ensures a bare schema stays empty.
internal/llm/client_params_test.go:267
Function
TestBuildToolRegistry
(t *testing.T)
cmd/opencodereview/git_test.go:185
Function
TestBuildUserPromptWithoutState
(t *testing.T)
acp/internal/intent/tool_test.go:47
Function
TestBuiltinToolProvider
(t *testing.T)
internal/tool/stub_test.go:29
Function
TestCLIReferenceDocumentsSessionCompare
(t *testing.T)
cmd/opencodereview/cli_reference_compare_docs_test.go:13
Function
TestCLIReferenceDocumentsSessionExport
(t *testing.T)
cmd/opencodereview/cli_reference_compare_docs_test.go:35
Function
TestCLIReferenceDocumentsSessionRm
(t *testing.T)
cmd/opencodereview/cli_reference_compare_docs_test.go:122
Function
TestCLIReferenceUsesSubtaskUnit
(t *testing.T)
cmd/opencodereview/cli_reference_compare_docs_test.go:57
Function
TestCallGroupingLLM_EmptyResponse
(t *testing.T)
internal/agent/grouping_test.go:514
Function
TestCallGroupingLLM_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
Function
TestCallToolPreservesEndpointQueryAndEscapedPath
(t *testing.T)
acp/internal/intent/llm/client_test.go:31
Function
TestCallToolUnsupportedProtocol
(t *testing.T)
acp/internal/intent/llm/client_test.go:335
Function
TestCallbackMalformedQueryDoesNotExchangeCode
(t *testing.T)
internal/chatgptauth/lifecycle_test.go:441
Function
TestCallbackOneTimeAndWrongMethod
(t *testing.T)
internal/chatgptauth/lifecycle_test.go:400
Function
TestCancelClearsIdleClarification
(t *testing.T)
acp/internal/adapter/lifecycle_test.go:173
Function
TestCancelDuringParsing
(t *testing.T)
acp/internal/adapter/lifecycle_test.go:94
Function
TestCancelPendingCompression_NilJob
(t *testing.T)
internal/llmloop/runner_test.go:181
Function
TestCancelPendingCompression_WithJob
(t *testing.T)
internal/llmloop/runner_test.go:187
Function
TestCancellationAtStartBoundaryDoesNotStartOCR
(t *testing.T)
acp/internal/orchestrator/termination_test.go:185
Function
TestCanonicalPathResolvesSymlink
(t *testing.T)
internal/pathutil/path_test.go:39
Function
TestCanonicalPath_NestedSymlink
(t *testing.T)
internal/pathutil/path_test.go:92
Function
TestCanonicalPath_NonExistentPath
(t *testing.T)
internal/pathutil/path_test.go:60
Function
TestCanonicalPath_RelativePath
(t *testing.T)
internal/pathutil/path_test.go:67
Function
TestCanonicalRemote
(t *testing.T)
internal/diff/git_resolve_test.go:161
Function
TestCatalogErrorBoundsAndShapes
(t *testing.T)
internal/chatgptauth/api_error_test.go:21
Function
TestCatalogRequestFailurePaths
(t *testing.T)
internal/chatgptauth/api_error_test.go:48
Function
TestCategoryCounts_NormalizesUnknownCategories
(t *testing.T)
internal/viewer/server_startserver_test.go:258
Function
TestChatGPTAuthCLIValidation
(t *testing.T)
cmd/opencodereview/chatgpt_auth_test.go:15
Function
TestChatGPTAuthLogoutEmpty
(t *testing.T)
cmd/opencodereview/chatgpt_auth_test.go:39
Function
TestChatGPTAuthStatusEmpty
(t *testing.T)
cmd/opencodereview/chatgpt_auth_test.go:29
Function
TestChatGPTCapabilityStatus
(t *testing.T)
internal/llm/chatgpt_roundtrip_test.go:150
Function
TestChatGPTCommandLifecycle
(t *testing.T)
cmd/opencodereview/chatgpt_auth_lifecycle_test.go:39
Function
TestChatGPTCommandStoreErrors
(t *testing.T)
cmd/opencodereview/chatgpt_auth_lifecycle_test.go:178
Function
TestChatGPTEnablePlanCLI
(t *testing.T)
cmd/opencodereview/chatgpt_consent_test.go:16
Function
TestChatGPTExplicitModelServerRejection
(t *testing.T)
internal/llm/chatgpt_model_test.go:66
Function
TestChatGPTFallbackCallAndCredentialFailure
(t *testing.T)
internal/llm/chatgpt_roundtrip_test.go:123
Function
TestChatGPTLateFailureAndWrongNamespace
(t *testing.T)
internal/llm/chatgpt_roundtrip_test.go:93
Function
TestChatGPTModelSelectionContract
(t *testing.T)
internal/llm/chatgpt_model_test.go:19
Function
TestChatGPTNativeToolHTTPRoundTrip
(t *testing.T)
internal/llm/chatgpt_roundtrip_test.go:40
Function
TestChatGPTRejectsOverrides
(t *testing.T)
internal/llm/chatgpt_test.go:110
Function
TestChatGPTRequestNamespaceAndReplay
(t *testing.T)
internal/llm/chatgpt_test.go:23
Function
TestChatGPTResolveEndpoint
(t *testing.T)
internal/llm/chatgpt_test.go:122
Function
TestChatGPTStatusExpiryAfterSignOut
(t *testing.T)
cmd/opencodereview/chatgpt_auth_lifecycle_test.go:150
Function
TestChatGPTStreamFailureDetails
(t *testing.T)
internal/llm/responses_client_test.go:916
Function
TestChatGPTStreamTerminal
(t *testing.T)
internal/llm/chatgpt_test.go:62
Function
TestChatResponse_Content
(t *testing.T)
internal/llm/message_test.go:129
Function
TestChatResponse_Content_Empty
(t *testing.T)
internal/llm/message_test.go:141
Function
TestChatResponse_Content_FallbackToReasoning
(t *testing.T)
internal/llm/message_test.go:148
Function
TestChatResponse_Content_NilContent
(t *testing.T)
internal/llm/message_test.go:160
Function
TestChatResponse_Content_StripsThinkTags
(t *testing.T)
internal/llm/message_test.go:171
Function
TestChatResponse_ToolCalls
(t *testing.T)
internal/llm/message_test.go:249
Function
TestChatResponse_ToolCalls_Empty
(t *testing.T)
internal/llm/message_test.go:269
Function
TestChatResponse_VisibleContent_EmptyString
(t *testing.T)
internal/llm/message_test.go:201
Function
TestChatResponse_VisibleContent_NilContent
(t *testing.T)
internal/llm/message_test.go:190
Function
TestChatResponse_VisibleContent_NoChoices
(t *testing.T)
internal/llm/message_test.go:183
Function
TestChatResponse_VisibleContent_NormalText
(t *testing.T)
internal/llm/message_test.go:213
Function
TestChatResponse_VisibleContent_StripsThinkTags
(t *testing.T)
internal/llm/message_test.go:225
Function
TestChatResponse_VisibleContent_WhitespaceOnly
(t *testing.T)
internal/llm/message_test.go:237
Function
TestCheckAPIKeyRequirement
(t *testing.T)
cmd/opencodereview/bedrock_config_test.go:275
Function
TestCheckDoesNotRewriteArtifact
(t *testing.T)
internal/llm/gen/check_test.go:228
Function
TestCheckGitVersion
(t *testing.T)
internal/gitcmd/version_test.go:88
Function
TestCheckGitVersion_Real
(t *testing.T)
internal/gitcmd/version_test.go:134
Function
TestCheckKotlinNames
(t *testing.T)
internal/llm/gen/kotlin_test.go:51
Function
TestCheckKotlinPackage
(t *testing.T)
internal/llm/gen/kotlin_test.go:83
Function
TestCheckMetricErr
(t *testing.T)
internal/telemetry/metrics_test.go:30
Function
TestCheckPresets
(t *testing.T)
internal/llm/gen/check_test.go:17
← previous
next →
3,401–3,500 of 7,169, ranked by callers