Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,390 in github.com/alibaba/open-code-review
⨍
Functions
7,390
◇
Types & classes
806
Function
TestSlashRejectsConflictingReviewSelectors
(t *testing.T)
acp/internal/intent/slash_test.go:104
Function
TestSniffer_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
Function
TestSniffer_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
Function
TestSniffer_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
Function
TestSniffer_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
Function
TestSniffer_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
Function
TestSniffer_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
Function
TestSniffer_WorkingTree
(t *testing.T)
internal/config/rules/sniffer_test.go:81
Function
TestSourceArtifactSHA256_DedupsByItemID
(t *testing.T)
internal/agent/manifest_hash_test.go:88
Function
TestSourceArtifactSHA256_WorkspaceCoversDeletedInputs
(t *testing.T)
internal/agent/manifest_hash_test.go:116
Function
TestSplitAndNormalize_SkipsEmptyLines
(t *testing.T)
internal/diff/resolver_test.go:309
Function
TestSplitBindHost
(t *testing.T)
internal/viewer/hostguard_test.go:86
Function
TestSplitDiffLines_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
Function
TestSplitPaths
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:90
Function
TestSplitToLines
(t *testing.T)
cmd/opencodereview/output_helpers_test.go:146
Function
TestStartLLMSpan
(t *testing.T)
internal/telemetry/span_test.go:148
Function
TestStartServer_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
Function
TestStartServer_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
Function
TestStartSpan_Disabled
(t *testing.T)
internal/telemetry/span_test.go:56
Function
TestStartSpan_Enabled
(t *testing.T)
internal/telemetry/span_test.go:43
Function
TestStartSpan_WithOptions
(t *testing.T)
internal/telemetry/span_test.go:69
Function
TestStartToolSpan_Enabled
(t *testing.T)
internal/telemetry/span_test.go:91
Function
TestStateLifecycle
(t *testing.T)
acp/internal/intent/state_test.go:11
Function
TestStateNilReceiver
(t *testing.T)
acp/internal/intent/state_test.go:45
Function
TestStateReplacesOnNewCommand
(t *testing.T)
acp/internal/intent/state_test.go:36
Function
TestStaticAssetRefs_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
Function
TestStaticFS
(t *testing.T)
internal/viewer/server_extra_test.go:742
Function
TestStatusBadge
(t *testing.T)
cmd/opencodereview/output_helpers_test.go:226
Function
TestStatusBadge_Color
(t *testing.T)
cmd/opencodereview/output_color_test.go:95
Function
TestStatusBadge_NoColor
(t *testing.T)
cmd/opencodereview/output_color_test.go:82
Function
TestStderrBufferChunksDoNotImplyTruncation
(t *testing.T)
acp/internal/orchestrator/internal_test.go:55
Function
TestStderrEmitsPendingLineBeforeReadError
(t *testing.T)
acp/internal/orchestrator/internal_test.go:91
Function
TestStderrLongLineUsesBoundedMemory
(t *testing.T)
acp/internal/orchestrator/internal_test.go:31
Function
TestStopKillsIgnoringMemberAfterLeaderExit
(t *testing.T)
acp/internal/orchestrator/process_unix_test.go:24
Function
TestStoreAtomicFailureAndSelect
(t *testing.T)
internal/chatgptauth/lifecycle_test.go:267
Function
TestStoreCorruptionAndLockCancellation
(t *testing.T)
internal/chatgptauth/auth_test.go:98
Function
TestStoreLifecycle
(t *testing.T)
internal/chatgptauth/auth_test.go:47
Function
TestStreamIntegrityErrorMessage
The three integrity conditions keep their exact rendered messages: the type exists to make them classifiable, not to change what a user reads.
internal/llm/retry_boundary_test.go:692
Function
TestStripAnsiWriter_CSIInvalidByteFallback
TestStripAnsiWriter_CSIInvalidByteFallback pins that an invalid CSI byte (non-ASCII >= 0x80 or control char < 0x20) safely flushes pending bytes as no
cmd/opencodereview/output_file_test.go:668
Function
TestStripAnsiWriter_CSILengthExceededFallback
TestStripAnsiWriter_CSILengthExceededFallback pins that an unclosed or oversized CSI sequence exceeding maxCSISequenceLength is flushed to avoid unbou
cmd/opencodereview/output_file_test.go:684
Function
TestStripAnsiWriter_ESCAtEndOfWrite
(t *testing.T)
cmd/opencodereview/output_file_test.go:157
Function
TestStripAnsiWriter_EscIntermediateBytesLengthExceededFallback
TestStripAnsiWriter_EscIntermediateBytesLengthExceededFallback pins that an escape sequence with excessive intermediate bytes (0x20..0x2f) triggers a
cmd/opencodereview/output_file_test.go:735
Function
TestStripAnsiWriter_MultiByteEscapeSplitAcrossWrites
(t *testing.T)
cmd/opencodereview/output_file_test.go:129
Function
TestStripAnsiWriter_OSCBareEscKeepsTrailingText
TestStripAnsiWriter_OSCBareEscKeepsTrailingText pins the regression where an OSC string terminated by a bare ESC (no ST '\') swallowed the first byte
cmd/opencodereview/output_file_test.go:615
Function
TestStripAnsiWriter_OSCBareEscThenNewEscape
TestStripAnsiWriter_OSCBareEscThenNewEscape pins that a bare-ESC-terminated OSC followed by a new escape sequence starts a fresh sequence instead of l
cmd/opencodereview/output_file_test.go:631
Function
TestStripAnsiWriter_OSCLengthExceededFallback
TestStripAnsiWriter_OSCLengthExceededFallback pins that an unclosed or oversized OSC sequence exceeding maxOSCSequenceLength is flushed to avoid swall
cmd/opencodereview/output_file_test.go:701
Function
TestStripAnsiWriter_Passthrough
--- stripAnsiWriter ---
cmd/opencodereview/output_file_test.go:19
Function
TestStripAnsiWriter_SequenceSplitMidParameter
(t *testing.T)
cmd/opencodereview/output_file_test.go:98
Function
TestStripAnsiWriter_SplitAcrossWrites
(t *testing.T)
cmd/opencodereview/output_file_test.go:83
Function
TestStripAnsiWriter_StripsCSIColors
(t *testing.T)
cmd/opencodereview/output_file_test.go:31
Function
TestStripAnsiWriter_StripsDCS
(t *testing.T)
cmd/opencodereview/output_file_test.go:144
Function
TestStripAnsiWriter_StripsMultiByteEscape
(t *testing.T)
cmd/opencodereview/output_file_test.go:116
Function
TestStripAnsiWriter_StripsOSC
(t *testing.T)
cmd/opencodereview/output_file_test.go:57
Function
TestStripAnsiWriter_StripsOSCWithST
(t *testing.T)
cmd/opencodereview/output_file_test.go:70
Function
TestStripAnsiWriter_StripsTrueColorBackground
(t *testing.T)
cmd/opencodereview/output_file_test.go:44
Function
TestStripAnsiWriter_WriteFailureReturnsConsumedLen
TestStripAnsiWriter_WriteFailureReturnsConsumedLen pins that Write reports the underlying error but still returns len(p): the state machine has alread
cmd/opencodereview/output_file_test.go:653
Function
TestStripEmptyPlanBlock
(t *testing.T)
internal/agent/util_test.go:14
Function
TestStripEmptyPlanBlock_IntegrationWithReplaceAll
(t *testing.T)
internal/agent/util_test.go:55
Function
TestStripMarkdownFences
(t *testing.T)
internal/llmloop/compression_test.go:212
Function
TestStripMarkdownFences
(t *testing.T)
internal/agent/util_test.go:73
Function
TestStripMarkdownFences_AdditionalCases
(t *testing.T)
internal/llmloop/runner_test.go:712
Function
TestStripModelSuffix
(t *testing.T)
internal/llm/resolver_test.go:20
Function
TestStripThinkTags
(t *testing.T)
internal/llm/client_test.go:2063
Function
TestStubProvider_Execute
(t *testing.T)
internal/tool/stub_test.go:18
Function
TestStubProvider_Tool
(t *testing.T)
internal/tool/stub_test.go:11
Function
TestStyleProgressRestoresStreams
(test *testing.T)
internal/stdout/style_test.go:92
Function
TestSubmitIntentToolSchema
(t *testing.T)
acp/internal/intent/tool_test.go:11
Function
TestSuggestFlag
(t *testing.T)
cmd/opencodereview/flag_suggest_test.go:34
Function
TestSummarizeArgs
(t *testing.T)
internal/telemetry/events_test.go:270
Function
TestSummarizeSelection
TestSummarizeSelection pins what Run reports and keeps: only files that pass every gate are counted as selected, while deletions stay in the working d
internal/agent/agent_test.go:898
Function
TestSummaryRedactsToken
(t *testing.T)
acp/internal/intent/llm/resolve_test.go:135
Function
TestSurfaceCSS_LightSurfaceIsWhite
(t *testing.T)
internal/viewer/server_extra_test.go:341
Function
TestSwap
(t *testing.T)
internal/stdout/stdout_test.go:36
Function
TestSwap_Composable
(t *testing.T)
internal/stdout/stdout_test.go:54
Function
TestSyncSessionModelSelection_ActiveOfficialProviderDefersPersist
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1752
Function
TestSyncSessionModelSelection_CrossCustomProviderNoPersist
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1788
Function
TestSyncSessionModelSelection_CrossOfficialProviderNoPersist
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1712
Function
TestSyncSessionModelSelection_EmptyModel
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1703
Function
TestSyncSessionModelSelection_NilCfg
--- syncSessionModelSelection tests ---
cmd/opencodereview/provider_tui_funcs_test.go:1695
Function
TestSyncSessionModelSelection_RecordsSessionPickForInactiveOfficialProvider
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1828
Function
TestSystemRuleCanonicalConfig
(t *testing.T)
internal/config/rules/canonical_config_test.go:20
Function
TestSystemRuleUnmarshalJSON
TestSystemRuleUnmarshalJSON exercises the custom order-preserving decoder in SystemRule.UnmarshalJSON: the happy path, the absent/null map short-circu
internal/config/rules/system_rules_unmarshal_test.go:15
Function
TestSystemRulesIntegrity
(t *testing.T)
internal/config/rules/system_rules_test.go:2114
Function
TestTaskBudgetUsesOwnSubmission
(t *testing.T)
internal/llmloop/task_test.go:118
Function
TestTaskEmptyToolResultsStopWithoutGrace
(t *testing.T)
internal/llmloop/task_test.go:319
Function
TestTaskFailureAndCancellation
(t *testing.T)
internal/llmloop/task_test.go:151
Function
TestTaskGraceOutcomes
(t *testing.T)
internal/llmloop/task_test.go:269
Function
TestTaskMainCannotUseGraceOnlyTool
(t *testing.T)
internal/llmloop/task_test.go:336
Function
TestTaskModelErrors
(t *testing.T)
internal/llmloop/task_test.go:219
Function
TestTaskOwnCompressionAndEmptyResponse
(t *testing.T)
internal/llmloop/task_test.go:172
Function
TestTaskStructuredSubmissionAndRetry
(t *testing.T)
internal/llmloop/task_test.go:76
Function
TestTaskTimeoutHelp
(t *testing.T)
cmd/opencodereview/timeout_help_test.go:13
Function
TestTemplateFuncTaskTypeClass
(t *testing.T)
internal/viewer/server_extra_test.go:789
Function
TestTerminalComplete
(t *testing.T)
internal/session/manifest_test.go:45
Function
TestTerminalCompleteZeroFindings
Zero findings is a coverage concept: all selected complete regardless of comments, so the terminal state is still complete.
internal/session/manifest_test.go:63
Function
TestTerminalFailedAll
(t *testing.T)
internal/session/manifest_test.go:85
Function
TestTerminalPartial
(t *testing.T)
internal/session/manifest_test.go:71
Function
TestTerminalProgressUsesResultStatus
(t *testing.T)
acp/internal/adapter/presentation/progress_test.go:300
Function
TestTerminalSkipped
(t *testing.T)
internal/session/manifest_test.go:94
Function
TestTestMainPreservesIsolatedHomeForSubprocess
(t *testing.T)
cmd/opencodereview/main_test.go:80
← previous
next →
6,201–6,300 of 7,390, ranked by callers