MCPcopy Create free account

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

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

FunctionTestStderrEmitsPendingLineBeforeReadError
(t *testing.T)
acp/internal/orchestrator/internal_test.go:91
FunctionTestStderrLongLineUsesBoundedMemory
(t *testing.T)
acp/internal/orchestrator/internal_test.go:31
FunctionTestStopKillsIgnoringMemberAfterLeaderExit
(t *testing.T)
acp/internal/orchestrator/process_unix_test.go:24
FunctionTestStoreAtomicFailureAndSelect
(t *testing.T)
internal/chatgptauth/lifecycle_test.go:267
FunctionTestStoreCorruptionAndLockCancellation
(t *testing.T)
internal/chatgptauth/auth_test.go:98
FunctionTestStoreLifecycle
(t *testing.T)
internal/chatgptauth/auth_test.go:47
FunctionTestStreamIntegrityErrorMessage
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
FunctionTestStripAnsiWriter_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
FunctionTestStripAnsiWriter_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
FunctionTestStripAnsiWriter_ESCAtEndOfWrite
(t *testing.T)
cmd/opencodereview/output_file_test.go:157
FunctionTestStripAnsiWriter_EscIntermediateBytesLengthExceededFallback
TestStripAnsiWriter_EscIntermediateBytesLengthExceededFallback pins that an escape sequence with excessive intermediate bytes (0x20..0x2f) triggers a
cmd/opencodereview/output_file_test.go:735
FunctionTestStripAnsiWriter_MultiByteEscapeSplitAcrossWrites
(t *testing.T)
cmd/opencodereview/output_file_test.go:129
FunctionTestStripAnsiWriter_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
FunctionTestStripAnsiWriter_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
FunctionTestStripAnsiWriter_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
FunctionTestStripAnsiWriter_Passthrough
--- stripAnsiWriter ---
cmd/opencodereview/output_file_test.go:19
FunctionTestStripAnsiWriter_SequenceSplitMidParameter
(t *testing.T)
cmd/opencodereview/output_file_test.go:98
FunctionTestStripAnsiWriter_SplitAcrossWrites
(t *testing.T)
cmd/opencodereview/output_file_test.go:83
FunctionTestStripAnsiWriter_StripsCSIColors
(t *testing.T)
cmd/opencodereview/output_file_test.go:31
FunctionTestStripAnsiWriter_StripsDCS
(t *testing.T)
cmd/opencodereview/output_file_test.go:144
FunctionTestStripAnsiWriter_StripsMultiByteEscape
(t *testing.T)
cmd/opencodereview/output_file_test.go:116
FunctionTestStripAnsiWriter_StripsOSC
(t *testing.T)
cmd/opencodereview/output_file_test.go:57
FunctionTestStripAnsiWriter_StripsOSCWithST
(t *testing.T)
cmd/opencodereview/output_file_test.go:70
FunctionTestStripAnsiWriter_StripsTrueColorBackground
(t *testing.T)
cmd/opencodereview/output_file_test.go:44
FunctionTestStripAnsiWriter_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
FunctionTestStripEmptyPlanBlock
(t *testing.T)
internal/agent/util_test.go:14
FunctionTestStripEmptyPlanBlock_IntegrationWithReplaceAll
(t *testing.T)
internal/agent/util_test.go:55
FunctionTestStripMarkdownFences
(t *testing.T)
internal/llmloop/compression_test.go:212
FunctionTestStripMarkdownFences
(t *testing.T)
internal/agent/util_test.go:73
FunctionTestStripMarkdownFences_AdditionalCases
(t *testing.T)
internal/llmloop/runner_test.go:712
FunctionTestStripModelSuffix
(t *testing.T)
internal/llm/resolver_test.go:20
FunctionTestStripThinkTags
(t *testing.T)
internal/llm/client_test.go:2063
FunctionTestStubProvider_Execute
(t *testing.T)
internal/tool/stub_test.go:18
FunctionTestStubProvider_Tool
(t *testing.T)
internal/tool/stub_test.go:11
FunctionTestStyleProgressRestoresStreams
(test *testing.T)
internal/stdout/style_test.go:92
FunctionTestSubmitIntentToolSchema
(t *testing.T)
acp/internal/intent/tool_test.go:11
FunctionTestSuggestFlag
(t *testing.T)
cmd/opencodereview/flag_suggest_test.go:34
FunctionTestSummarizeArgs
(t *testing.T)
internal/telemetry/events_test.go:270
FunctionTestSummarizeSelection
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
FunctionTestSummaryRedactsToken
(t *testing.T)
acp/internal/intent/llm/resolve_test.go:135
FunctionTestSurfaceCSS_LightSurfaceIsWhite
(t *testing.T)
internal/viewer/server_extra_test.go:341
FunctionTestSwap
(t *testing.T)
internal/stdout/stdout_test.go:36
FunctionTestSwap_Composable
(t *testing.T)
internal/stdout/stdout_test.go:54
FunctionTestSyncSessionModelSelection_ActiveOfficialProviderDefersPersist
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1752
FunctionTestSyncSessionModelSelection_CrossCustomProviderNoPersist
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1788
FunctionTestSyncSessionModelSelection_CrossOfficialProviderNoPersist
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1712
FunctionTestSyncSessionModelSelection_EmptyModel
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1703
FunctionTestSyncSessionModelSelection_NilCfg
--- syncSessionModelSelection tests ---
cmd/opencodereview/provider_tui_funcs_test.go:1695
FunctionTestSyncSessionModelSelection_RecordsSessionPickForInactiveOfficialProvider
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1828
FunctionTestSystemRuleCanonicalConfig
(t *testing.T)
internal/config/rules/canonical_config_test.go:20
FunctionTestSystemRuleUnmarshalJSON
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
FunctionTestSystemRulesIntegrity
(t *testing.T)
internal/config/rules/system_rules_test.go:2112
FunctionTestTaskBudgetUsesOwnSubmission
(t *testing.T)
internal/llmloop/task_test.go:118
FunctionTestTaskEmptyToolResultsStopWithoutGrace
(t *testing.T)
internal/llmloop/task_test.go:319
FunctionTestTaskFailureAndCancellation
(t *testing.T)
internal/llmloop/task_test.go:151
FunctionTestTaskGraceOutcomes
(t *testing.T)
internal/llmloop/task_test.go:269
FunctionTestTaskMainCannotUseGraceOnlyTool
(t *testing.T)
internal/llmloop/task_test.go:336
FunctionTestTaskModelErrors
(t *testing.T)
internal/llmloop/task_test.go:219
FunctionTestTaskOwnCompressionAndEmptyResponse
(t *testing.T)
internal/llmloop/task_test.go:172
FunctionTestTaskStructuredSubmissionAndRetry
(t *testing.T)
internal/llmloop/task_test.go:76
FunctionTestTaskTimeoutHelp
(t *testing.T)
cmd/opencodereview/timeout_help_test.go:13
FunctionTestTemplateFuncTaskTypeClass
(t *testing.T)
internal/viewer/server_extra_test.go:789
FunctionTestTerminalComplete
(t *testing.T)
internal/session/manifest_test.go:45
FunctionTestTerminalCompleteZeroFindings
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
FunctionTestTerminalFailedAll
(t *testing.T)
internal/session/manifest_test.go:85
FunctionTestTerminalPartial
(t *testing.T)
internal/session/manifest_test.go:71
FunctionTestTerminalProgressUsesResultStatus
(t *testing.T)
acp/internal/adapter/presentation/progress_test.go:300
FunctionTestTerminalSkipped
(t *testing.T)
internal/session/manifest_test.go:94
FunctionTestTestMainPreservesIsolatedHomeForSubprocess
(t *testing.T)
cmd/opencodereview/main_test.go:80
FunctionTestTestToolDef
TestTestToolDef maps the configured tool onto the shape the LLM clients take.
cmd/opencodereview/llm_cmd_test.go:77
FunctionTestTextTokens_MeetWCAGAAOnPageBackground
TestTextTokens_MeetWCAGAAOnPageBackground holds the muted and secondary text tokens to WCAG AA (4.5:1) against each theme's *page* background, so futu
internal/viewer/server_extra_test.go:364
FunctionTestTimeoutHasVisibleNotice
(t *testing.T)
acp/internal/adapter/prompt_test.go:57
FunctionTestTimeoutMetadataSurvivesNoticeFailure
(t *testing.T)
acp/internal/adapter/output_test.go:41
FunctionTestToLlmComments
(t *testing.T)
internal/viewer/compare_test.go:78
FunctionTestToSingleFileGroups
(t *testing.T)
internal/agent/grouping_test.go:46
FunctionTestToToolDef_MapSchema
(t *testing.T)
internal/mcp/provider_test.go:125
FunctionTestToToolDef_NilSchema
(t *testing.T)
internal/mcp/provider_test.go:157
FunctionTestToToolDef_UnexpectedSchemaType
(t *testing.T)
internal/mcp/provider_test.go:170
FunctionTestTokenCountersDelegateToRunner
Ensure llmloop.Runner is the underlying source of token counters so the public methods on scan.Agent are not stale (preventing accidental refactor reg
internal/scan/agent_test.go:390
FunctionTestTokenResponseValidation
(t *testing.T)
internal/chatgptauth/lifecycle_test.go:299
FunctionTestToolCallErrorStyle
(test *testing.T)
internal/telemetry/events_test.go:27
FunctionTestToolCallIDsAcrossProcessRestarts
(t *testing.T)
acp/internal/adapter/presentation/tool_ids_test.go:19
FunctionTestToolCall_EstimatedTokens
(t *testing.T)
internal/llm/client_test.go:2246
FunctionTestToolCallsForJSON_KeepsFieldOrder
TestToolCallsForJSON_KeepsFieldOrder guards the llm_request byte format. A map projection sorts its keys, which would silently reorder every tool call
internal/session/history_test.go:676
FunctionTestToolFailures_AreOrderedAndSnapshotIsolated
(t *testing.T)
internal/llmloop/runner_test.go:131
FunctionTestToolResultMessages_AnswersEveryCall
TestToolResultMessages_AnswersEveryCall guards the protocol rule both supported families share: an assistant turn carrying tool calls must be followed
cmd/opencodereview/llm_cmd_test.go:142
FunctionTestToolResultMessages_NoCalls
TestToolResultMessages_NoCalls returns nothing when the model called nothing.
cmd/opencodereview/llm_cmd_test.go:174
FunctionTestToolRoundTripNote
TestToolRoundTripNote guards the reporting contract for #1357: a provider that never calls the test tool leaves the round trip unproven, and saying so
cmd/opencodereview/llm_cmd_test.go:40
FunctionTestToolRoundTripNote_UnverifiedIsNotMistakenForSuccess
TestToolRoundTripNote_UnverifiedIsNotMistakenForSuccess keeps the two states textually distinct, so neither reads as the other.
cmd/opencodereview/llm_cmd_test.go:69
FunctionTestTool_IsKnown
(t *testing.T)
internal/tool/definitions_test.go:43
FunctionTestTool_Name
(t *testing.T)
internal/tool/definitions_test.go:37
FunctionTestTotalOnlyAndMultipleChoices
(test *testing.T)
internal/behaviortask/budget_test.go:18
FunctionTestTraceIDFromContext_Empty
TestTraceIDFromContext_Empty covers the invalid-span branch: a bare context carries no span, so an empty string is returned.
internal/telemetry/traceid_test.go:13
FunctionTestTraceIDFromContext_Valid
TestTraceIDFromContext_Valid covers the valid-span branch: a context carrying an active span reports its hex-encoded trace ID.
internal/telemetry/traceid_test.go:21
FunctionTestTrackedCredentialScopes
(test *testing.T)
internal/behaviortask/prepare_test.go:226
FunctionTestTransitionRejectionStaysActionableWithNoName
An endpoint configured straight from environment variables resolves no provider name, so the rejection must not tell the user to run `--provider ` wit
internal/session/resume_identity_test.go:264
FunctionTestTriggerAsyncCompression
(t *testing.T)
internal/llmloop/runner_test.go:469
FunctionTestTrimGitUsage
(t *testing.T)
internal/tool/code_search_test.go:450
FunctionTestTrimGitUsage_PreservesDiagnosticWithoutUsage
(t *testing.T)
internal/tool/code_search_test.go:487
FunctionTestTrimGitUsage_WhitespaceOnly
(t *testing.T)
internal/tool/code_search_test.go:495
← previousnext →6,301–6,400 of 7,484, ranked by callers