MCPcopy Create free account

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

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

FunctionTestSetErrorWritesJSONL
(t *testing.T)
internal/session/persist_test.go:195
FunctionTestSetLlmProtocolRejectsBedrock
TestSetLlmProtocolRejectsBedrock pins the other half of the contract enforced in the resolver: the llm block is one url plus one token, with nowhere t
cmd/opencodereview/bedrock_config_test.go:253
FunctionTestSetMCPServerValue_Args
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:841
FunctionTestSetMCPServerValue_ArgsInvalidJSON
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:852
FunctionTestSetMCPServerValue_Command
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:824
FunctionTestSetMCPServerValue_CommandEmpty
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:834
FunctionTestSetMCPServerValue_DottedServerName
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:955
FunctionTestSetMCPServerValue_DottedServerNameRejectsEmptySegments
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:986
FunctionTestSetMCPServerValue_Env
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:859
FunctionTestSetMCPServerValue_EnvInvalidFormat
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:877
FunctionTestSetMCPServerValue_EnvInvalidJSON
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:870
FunctionTestSetMCPServerValue_ExistingServer
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:941
FunctionTestSetMCPServerValue_Headers
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1861
FunctionTestSetMCPServerValue_HeadersEmptyName
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1890
FunctionTestSetMCPServerValue_HeadersEmptyValue
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1904
FunctionTestSetMCPServerValue_HeadersInvalidJSON
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1897
FunctionTestSetMCPServerValue_InvalidKey
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:926
FunctionTestSetMCPServerValue_Setup
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:909
FunctionTestSetMCPServerValue_Tools
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:884
FunctionTestSetMCPServerValue_ToolsEmptyName
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:902
FunctionTestSetMCPServerValue_ToolsInvalidJSON
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:895
FunctionTestSetMCPServerValue_Type
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1820
FunctionTestSetMCPServerValue_TypeInvalid
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1830
FunctionTestSetMCPServerValue_URL
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1837
FunctionTestSetMCPServerValue_URLEmpty
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1847
FunctionTestSetMCPServerValue_URLInvalidScheme
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1854
FunctionTestSetMCPServerValue_URLNoHost
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1875
FunctionTestSetMCPServerValue_URLParseError
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1882
FunctionTestSetMCPServerValue_UnknownField
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:919
FunctionTestSetPendingFailureCauseValidation
(t *testing.T)
internal/session/manifest_test.go:248
FunctionTestSetProtocolClearsStaleAWSSettings
TestSetProtocolClearsStaleAWSSettings covers the reverse order from TestAWSSettingsRejectedWhenEntryOverridesProtocol: aws_region/aws_profile set firs
cmd/opencodereview/bedrock_config_test.go:198
FunctionTestSetProtocolLeavesAWSSettingsWhenNoneSet
TestSetProtocolLeavesAWSSettingsWhenNoneSet is the no-op guard: switching protocol on an entry with no aws_region/aws_profile must not print a WARNING
cmd/opencodereview/bedrock_config_test.go:237
FunctionTestSetProviderValueAWSSettings
(t *testing.T)
cmd/opencodereview/bedrock_config_test.go:71
FunctionTestSetResponse
(t *testing.T)
internal/session/history_test.go:195
FunctionTestSetResponse_EmptyResponse
(t *testing.T)
internal/session/history_test.go:440
FunctionTestSetResponse_OmitsNativePayloadWhenAbsent
TestSetResponse_OmitsNativePayloadWhenAbsent guards the other half of the same contract: an ordinary turn with nothing to replay beyond Content/ToolCa
internal/session/history_test.go:345
FunctionTestSetResponse_PersistsNativePayload
TestSetResponse_PersistsNativePayload guards the training-reflow gap raised in review: the llm_response record must carry the opaque replay payload (e
internal/session/history_test.go:286
FunctionTestSetResponse_PersistsReasoningContent
TestSetResponse_PersistsReasoningContent guards the audit-transcript gap raised in review: the raw per-turn llm_response record must carry the model's
internal/session/history_test.go:245
FunctionTestSetResponse_PersistsToolCallExtraContent
TestSetResponse_PersistsToolCallExtraContent guards the response half: the llm_response record must carry the metadata that produced it, even when no
internal/session/history_test.go:601
FunctionTestSetRunFailureValidation
SetRunFailure rejects an invalid class and a conflicting re-classification, but accepts an idempotent repeat.
internal/session/manifest_test.go:650
FunctionTestSeverityColor
(t *testing.T)
cmd/opencodereview/output_test.go:35
FunctionTestShellRCFiles
(t *testing.T)
internal/llm/resolver_shellrc_test.go:12
FunctionTestShortAnalysisRevision
(test *testing.T)
cmd/opencodereview/analysis_test.go:1003
FunctionTestShortSessionID
(t *testing.T)
cmd/opencodereview/misc_helpers_test.go:55
FunctionTestShouldAutoOpen
TestShouldAutoOpen covers the env-reading wrapper. Only the two modes that short-circuit before any environment probe are deterministic here: under `g
internal/viewer/browser_exec_test.go:306
FunctionTestShouldAutoOpenEnv
(t *testing.T)
internal/viewer/server_startserver_test.go:123
FunctionTestShouldMaskConfigValue
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:183
FunctionTestShouldSkipFile
(t *testing.T)
internal/tool/file_find_test.go:334
FunctionTestShutdownDeadlineAndCloseWait
(t *testing.T)
acp/internal/adapter/lifecycle_test.go:64
FunctionTestShutdownWaitsForCleanup
(t *testing.T)
acp/internal/adapter/lifecycle_test.go:206
FunctionTestShutdownWithTimeout
(t *testing.T)
internal/telemetry/shutdown_test.go:164
FunctionTestShutdownWithTimeout_Error
(t *testing.T)
internal/telemetry/shutdown_test.go:180
FunctionTestShutdown_NoFuncs
(t *testing.T)
internal/telemetry/shutdown_test.go:108
FunctionTestShutdown_ReinitializeMetrics
(t *testing.T)
internal/telemetry/shutdown_test.go:17
FunctionTestShutdown_Success
(t *testing.T)
internal/telemetry/shutdown_test.go:116
FunctionTestShutdown_WithErrors
(t *testing.T)
internal/telemetry/shutdown_test.go:138
FunctionTestSigningKeyCacheAndCancellation
(t *testing.T)
internal/chatgptauth/auth_test.go:342
FunctionTestSimultaneouslyObservableReasonsPreferTimeout
(t *testing.T)
acp/internal/orchestrator/termination_test.go:174
FunctionTestSingleSignalGracefulShutdownUnaffected
TestSingleSignalGracefulShutdownUnaffected covers the other acceptance half: a single SIGINT still completes the graceful path — the simulated partial
cmd/opencodereview/interrupt_test.go:265
FunctionTestSlashClarify
(t *testing.T)
acp/internal/intent/slash_test.go:48
FunctionTestSlashClarifyMissingFrom
(t *testing.T)
acp/internal/intent/slash_test.go:75
FunctionTestSlashCommands
(t *testing.T)
acp/internal/intent/slash_test.go:11
FunctionTestSlashCommitMissingValueHint
(t *testing.T)
acp/internal/intent/slash_test.go:206
FunctionTestSlashNewCommandDoesNotInheritPendingSlots
(t *testing.T)
acp/internal/intent/slash_test.go:84
FunctionTestSlashNonSlashGoesToLLM
(t *testing.T)
acp/internal/intent/slash_test.go:153
FunctionTestSlashRangeScreenRespectsFlagValues
(t *testing.T)
acp/internal/intent/slash_test.go:179
FunctionTestSlashRejects
(t *testing.T)
acp/internal/intent/slash_test.go:113
FunctionTestSlashRejectsConflictingReviewSelectors
(t *testing.T)
acp/internal/intent/slash_test.go:104
FunctionTestSniffer_CanonicalConfigIncludesObjCRule
The objc rule doc is not referenced from system_rules.json, so it must be folded into CanonicalConfig explicitly or editing it would not invalidate th
internal/config/rules/sniffer_test.go:245
FunctionTestSniffer_MergeSystemRuleUsesSniffedRule
A user rule with merge_system_rule must receive the sniffed ObjC rule as its system half, not the MATLAB rule the path alone would select.
internal/config/rules/sniffer_test.go:179
FunctionTestSniffer_ReadsAtRefNotCheckedOut
TestSniffer_ReadsAtRefNotCheckedOut is the reason the sniffer reads through `git show <ref>:<path>` rather than the working tree: `ocr review --from/-
internal/config/rules/sniffer_test.go:120
FunctionTestSniffer_RealisticObjCHeaders
TestSniffer_RealisticObjCHeaders guards the case the sniff used to miss: real Objective-C files almost never open with #import — Xcode's file template
internal/config/rules/sniffer_test.go:300
FunctionTestSniffer_ResolveDetailKeepsPatternPlain
TestSniffer_ResolveDetailKeepsPatternPlain guards the JSON-contract concern: Pattern must always stay a plain glob (it flows into delegateRuleGroupJSO
internal/config/rules/sniffer_test.go:206
FunctionTestSniffer_UTF8BOM
(t *testing.T)
internal/config/rules/sniffer_bom_test.go:14
FunctionTestSniffer_UTF8BOMPreservesUserRules
(t *testing.T)
internal/config/rules/sniffer_bom_test.go:69
FunctionTestSniffer_UserRuleOutranksSniff
TestSniffer_UserRuleOutranksSniff guards the layering: the sniffer decorates the *system* layer, so a user's own rule for a .m path must still win. If
internal/config/rules/sniffer_test.go:161
FunctionTestSniffer_WorkingTree
(t *testing.T)
internal/config/rules/sniffer_test.go:81
FunctionTestSourceArtifactSHA256_DedupsByItemID
(t *testing.T)
internal/agent/manifest_hash_test.go:88
FunctionTestSourceArtifactSHA256_WorkspaceCoversDeletedInputs
(t *testing.T)
internal/agent/manifest_hash_test.go:116
FunctionTestSplitAndNormalize_SkipsEmptyLines
(t *testing.T)
internal/diff/resolver_test.go:309
FunctionTestSplitBindHost
(t *testing.T)
internal/viewer/hostguard_test.go:86
FunctionTestSplitDiffLines_LeavesLFTextAlone
LF diff text must be untouched, including a lone CR that is genuinely part of a line rather than a line terminator.
internal/diff/crlf_test.go:146
FunctionTestSplitPaths
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:90
FunctionTestSplitToLines
(t *testing.T)
cmd/opencodereview/output_helpers_test.go:146
FunctionTestStartLLMSpan
(t *testing.T)
internal/telemetry/span_test.go:148
FunctionTestStartServer_AddrInUse
TestStartServer_AddrInUse runs the full setup path (routes, host guard, security headers, server construction) and then fails fast on ListenAndServe b
internal/viewer/server_startserver_test.go:31
FunctionTestStartServer_SessionsRootError
TestStartServer_SessionsRootError forces os.UserHomeDir to fail by clearing HOME so StartServer returns before binding a socket.
internal/viewer/server_startserver_test.go:17
FunctionTestStartSpan_Disabled
(t *testing.T)
internal/telemetry/span_test.go:56
FunctionTestStartSpan_Enabled
(t *testing.T)
internal/telemetry/span_test.go:43
FunctionTestStartSpan_WithOptions
(t *testing.T)
internal/telemetry/span_test.go:69
FunctionTestStartToolSpan_Enabled
(t *testing.T)
internal/telemetry/span_test.go:91
FunctionTestStateLifecycle
(t *testing.T)
acp/internal/intent/state_test.go:11
FunctionTestStateNilReceiver
(t *testing.T)
acp/internal/intent/state_test.go:45
FunctionTestStateReplacesOnNewCommand
(t *testing.T)
acp/internal/intent/state_test.go:36
FunctionTestStaticAssetRefs_OnReposAndSessionsPages
TestStaticAssetRefs_OnReposAndSessionsPages holds the two listing pages to the same a11y script reference the session detail page already asserts. Bot
internal/viewer/handler_test.go:503
FunctionTestStaticFS
(t *testing.T)
internal/viewer/server_extra_test.go:742
FunctionTestStatusBadge
(t *testing.T)
cmd/opencodereview/output_helpers_test.go:226
FunctionTestStatusBadge_Color
(t *testing.T)
cmd/opencodereview/output_color_test.go:95
FunctionTestStatusBadge_NoColor
(t *testing.T)
cmd/opencodereview/output_color_test.go:82
FunctionTestStderrBufferChunksDoNotImplyTruncation
(t *testing.T)
acp/internal/orchestrator/internal_test.go:55
← previousnext →6,201–6,300 of 7,484, ranked by callers