MCPcopy Create free account

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

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

FunctionTestMain
(m *testing.M)
internal/agent/testmain_test.go:11
FunctionTestMain
(m *testing.M)
cmd/opencodereview/testmain_test.go:13
FunctionTestMain
(m *testing.M)
acp/internal/contract/mock_contract_test.go:32
FunctionTestMain
(m *testing.M)
acp/internal/testutil/stub_main_test.go:12
FunctionTestMain
(m *testing.M)
acp/internal/orchestrator/stub_main_test.go:14
FunctionTestMain
(m *testing.M)
acp/internal/orchestrator/process/stub_main_test.go:14
FunctionTestMain
(m *testing.M)
acp/cmd/ocr-acp/stub_main_test.go:14
FunctionTestMainLoopStopStringAndReason
MainLoopStop must be self-describing in both registers: String() for logs and telemetry, Reason() for the manifest reason and scan warning that are th
internal/llmloop/stop_test.go:12
FunctionTestMainLoopStopUnknownValue
A value outside the enum must name itself in both registers rather than borrow the StopNone catch-all. This also guards the enum's growth: adding a co
internal/llmloop/stop_test.go:51
FunctionTestMakefileBuildMatchesURLPattern
(t *testing.T)
internal/release/asset_naming_test.go:136
FunctionTestManifestBuilderFrozenNoOp
TestManifestBuilderFrozenNoOp covers the frozen-branch no-ops of the void setters and the errFrozen paths of the mutating methods after Finalize has f
internal/session/manifest_guards_test.go:60
FunctionTestManifestBuilderNilReceiver
TestManifestBuilderNilReceiver covers the `if b == nil` guard on every exported ManifestBuilder method: a nil builder must never panic, the mutating e
internal/session/manifest_guards_test.go:17
FunctionTestManifestFlowAllFailedTimeoutAndPanic
(t *testing.T)
internal/agent/manifest_integration_test.go:370
FunctionTestManifestFlowBudgetAndSkipped
(t *testing.T)
internal/agent/manifest_integration_test.go:461
FunctionTestManifestFlowCancellationBeforeDispatchStartsNoSubtask
(t *testing.T)
internal/agent/manifest_integration_test.go:299
FunctionTestManifestFlowCancellationPersistsResumableSession
(t *testing.T)
internal/agent/manifest_integration_test.go:233
FunctionTestManifestFlowCompleteAndPartial
(t *testing.T)
internal/agent/manifest_integration_test.go:161
FunctionTestManifestFlowExcludedItemIDCollisionKeepsSelected
Two paths that differ only in separator normalize to one item_id. When selection excludes one and selects the other, the excluded record must give way
internal/agent/manifest_integration_test.go:205
FunctionTestManifestFlowGroupBudgetStopIsPartialWhenSomeFilesHaveComments
A group that never calls task_done before exhausting its round budget must classify coverage per file, not per group: a.go already has a comment from
internal/agent/manifest_integration_test.go:566
FunctionTestManifestFlowMixedFailureIsIsolatedToPartial
A single item failing by timeout, panic, or budget must stay isolated: the run is partial (not failed), the sibling still completes, and run_failure i
internal/agent/manifest_integration_test.go:405
FunctionTestManifestFlowResumeIgnoresCheckpointTheParentManifestDoesNotVouchFor
TestManifestFlowResumeIgnoresCheckpointTheParentManifestDoesNotVouchFor covers a checkpoint line whose fingerprint the parent's coverage never settled
internal/agent/manifest_integration_test.go:760
FunctionTestManifestFlowResumeOfFullyFailedParentRedispatchesEverything
TestManifestFlowResumeOfFullyFailedParentRedispatchesEverything pins the case resume exists for. The parent's every item failed, so replay left no che
internal/agent/manifest_integration_test.go:791
FunctionTestManifestFlowResumeRecordsParentAndReusedItem
(t *testing.T)
internal/agent/manifest_integration_test.go:641
FunctionTestManifestFlowResumeWithProviderTransition
TestManifestFlowResumeWithProviderTransition verifies that a resumed run records the *current* provider/model in execution (not the parent's) while st
internal/agent/manifest_integration_test.go:862
FunctionTestManifestFlowResumeWithReusedAndAllRerunsFailedIsPartial
(t *testing.T)
internal/agent/manifest_integration_test.go:826
FunctionTestManifestFlowReusedCommentsStayOutOfPrompts
TestManifestFlowReusedCommentsStayOutOfPrompts pins the isolation half of reuse: a reused finding is merged into the output and nothing else. Feeding
internal/agent/manifest_integration_test.go:699
FunctionTestManifestFlowRunInputFailureIsPersisted
(t *testing.T)
internal/agent/manifest_integration_test.go:330
FunctionTestManifestMessage
TestManifestMessage covers every terminal-state branch of manifestMessage, including the waived-count variant of a complete run and the failed run wit
cmd/opencodereview/output_manifest_test.go:50
FunctionTestManifest_NilReceiver
TestManifest_NilReceiver covers the sh == nil branch of Manifest.
internal/session/list_more_test.go:56
FunctionTestManualE2ERetryReport
(t *testing.T)
cmd/opencodereview/manual_e2e_retry_test.go:134
FunctionTestMapResponsesResponse_FunctionCalls
(t *testing.T)
internal/llm/responses_client_test.go:416
FunctionTestMapResponsesResponse_RawOutputPreservesReasoningDelimiters
(t *testing.T)
internal/llm/responses_client_test.go:406
FunctionTestMapResponsesResponse_ReasoningAggregated
(t *testing.T)
internal/llm/responses_client_test.go:540
FunctionTestMapResponsesResponse_StatusFailedAndCancelled
(t *testing.T)
internal/llm/responses_client_test.go:478
FunctionTestMapResponsesResponse_StatusIncomplete
(t *testing.T)
internal/llm/responses_client_test.go:458
FunctionTestMapResponsesResponse_TextOnly
--- mapResponsesResponse tests ---
internal/llm/responses_client_test.go:365
FunctionTestMapResponsesResponse_Usage
(t *testing.T)
internal/llm/responses_client_test.go:502
FunctionTestMarkFailedEnforcesRedaction
The redaction floor is enforced through the builder, not just the helper: a secret passed via MarkFailed must not reach the manifest.
internal/session/manifest_test.go:712
FunctionTestMarkUnknownItemErrors
Marking an item that was never selected returns an error (not a silent no-op).
internal/session/manifest_test.go:398
FunctionTestMarkdownOutputDestinations
(test *testing.T)
cmd/opencodereview/markdown_test.go:290
FunctionTestMaskKey
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:22
FunctionTestMatchConsecutive_EmptySideLines
(t *testing.T)
internal/diff/resolver_test.go:513
FunctionTestMatchConsecutive_ExactFull
(t *testing.T)
internal/diff/resolver_test.go:536
FunctionTestMatchConsecutive_FirstMatchWins
(t *testing.T)
internal/diff/resolver_test.go:497
FunctionTestMatchConsecutive_MatchAtEnd
(t *testing.T)
internal/diff/resolver_test.go:520
FunctionTestMatchConsecutive_MatchAtStart
(t *testing.T)
internal/diff/resolver_test.go:528
FunctionTestMatchConsecutive_MultiLine
(t *testing.T)
internal/diff/resolver_test.go:481
FunctionTestMatchConsecutive_NoMatch
(t *testing.T)
internal/diff/resolver_test.go:489
FunctionTestMatchConsecutive_SingleLine
--------------------------------------------------------------------------- matchConsecutive unit tests ----------------------------------------------
internal/diff/resolver_test.go:473
FunctionTestMatchConsecutive_TargetLongerThanLines
(t *testing.T)
internal/diff/resolver_test.go:505
FunctionTestMatchGitignorePattern
(t *testing.T)
internal/diff/gitignore_test.go:224
FunctionTestMaxTokensConfigRoundTrip
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:103
FunctionTestMaybeRunDedup_SkipWhenDisabled
(t *testing.T)
internal/scan/coverage_test.go:482
FunctionTestMaybeRunDedup_SkipWhenTooFewComments
(t *testing.T)
internal/scan/coverage_test.go:497
FunctionTestMaybeRunDedup_Success
(t *testing.T)
internal/scan/coverage_test.go:435
FunctionTestMaybeRunPlan_SkipPathsDoNotCallLLM
(t *testing.T)
internal/scan/agent_test.go:188
FunctionTestMaybeRunPlan_Success
(t *testing.T)
internal/scan/coverage_test.go:324
FunctionTestMaybeRunProjectSummary_SkipWhenDisabled
(t *testing.T)
internal/scan/coverage_test.go:405
FunctionTestMaybeRunProjectSummary_SkipWhenNoComments
(t *testing.T)
internal/scan/coverage_test.go:413
FunctionTestMaybeRunProjectSummary_Success
(t *testing.T)
internal/scan/coverage_test.go:366
FunctionTestMergeModelLists
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:797
FunctionTestMessage_EstimatedTokens
(t *testing.T)
internal/llm/client_test.go:2303
FunctionTestMiniMaxModelSelectionAndRequest
(t *testing.T)
cmd/opencodereview/provider_minimax_test.go:20
FunctionTestMiniMaxSuggestedModels
(t *testing.T)
internal/llm/providers_test.go:83
FunctionTestMockCancelReportsCancelledManifest
TestMockCancelReportsCancelledManifest drives the cancellation path: wait for the READY marker on stderr, send SIGINT, then check the real cancellatio
acp/internal/contract/mock_contract_test.go:242
FunctionTestMockDefaultScenarioSucceeds
TestMockDefaultScenarioSucceeds pins the default -scenario value: running the binary bare is how a developer first tries it, so it must not error.
acp/internal/contract/mock_contract_test.go:198
FunctionTestMockEmptyCommentsEmitsArray
(t *testing.T)
acp/internal/contract/mock_contract_test.go:147
FunctionTestMockInvalidJSONDoesNotDecode
TestMockInvalidJSONDoesNotDecode confirms the malformed-output scenario actually produces output the adapter must reject.
acp/internal/contract/mock_contract_test.go:226
FunctionTestMockNonZeroExitStillDecodes
TestMockNonZeroExitStillDecodes documents that a failed run reports its status through the JSON document, not only through the exit code.
acp/internal/contract/mock_contract_test.go:210
FunctionTestMockPartialCarriesCoverageFailure
(t *testing.T)
acp/internal/contract/mock_contract_test.go:130
FunctionTestMockScanScenarioMatchesContract
(t *testing.T)
acp/internal/contract/mock_contract_test.go:172
FunctionTestMockStderrPollutionDoesNotLeak
(t *testing.T)
acp/internal/contract/mock_contract_test.go:161
FunctionTestMockSuccessReviewDecodesEveryField
(t *testing.T)
acp/internal/contract/mock_contract_test.go:86
FunctionTestModeWarning
(t *testing.T)
internal/viewer/compare_test.go:130
FunctionTestModelCount
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:158
FunctionTestModelListContains
(t *testing.T)
internal/llm/message_test.go:369
FunctionTestModelOverrideWarnsForKeyBasedProviders
(t *testing.T)
internal/llm/bedrock_test.go:343
FunctionTestModelProviderName_CustomTab
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:133
FunctionTestModelProviderName_CustomTab_NoSelection
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:148
FunctionTestModelProviderName_OfficialTab
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:121
FunctionTestModelReloadConfigAfterSaveFailure
(t *testing.T)
cmd/opencodereview/provider_tui_rollback_test.go:130
FunctionTestModelTUIUpdate_CancelAndDelete
TestModelTUIUpdate_CancelAndDelete covers esc/ctrl+c cancel and the 'd' key entering delete-confirm on a user-added model.
cmd/opencodereview/provider_tui_modeltui_test.go:74
FunctionTestModelTUIUpdate_CustomModelInput
TestModelTUIUpdate_CustomModelInput covers the customModel input sub-mode: esc exit, empty enter stays, duplicate enter sets formError, valid enter pe
cmd/opencodereview/provider_tui_modeltui_test.go:96
FunctionTestModelTUIUpdate_Navigation
TestModelTUIUpdate_Navigation covers window resize, up/down wrap-around, and enter on both a real model and the custom "add" item.
cmd/opencodereview/provider_tui_modeltui_test.go:36
FunctionTestModelTUI_AddCustomModelRejectsDuplicate
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1240
FunctionTestModelTUI_CustomProvider_AddCustomModelStaysOnList
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1193
FunctionTestModelTUI_CustomProvider_DeleteCancel
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1423
FunctionTestModelTUI_CustomProvider_DeleteClearsCustomInput
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1382
FunctionTestModelTUI_CustomProvider_DeleteModelViaDKey
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1403
FunctionTestModelTUI_CustomProvider_DeleteOnCustomModelInputIgnored
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1339
FunctionTestModelTUI_CustomProvider_ShowsDeleteHint
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1366
FunctionTestModelTUI_DeleteSetsSavedInSession
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1225
FunctionTestModelTUI_EscCancelWithoutChangesNoSavedInSession
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1213
FunctionTestModelTUI_IsCustomItem
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:776
FunctionTestModelTUI_ItemCount
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:790
FunctionTestModelTUI_Official_AddCustomModelStaysOnList
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1151
FunctionTestModelTUI_Official_DeleteActiveUserModelClearsCfg
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1472
FunctionTestModelTUI_Official_DeleteBuiltInModelIgnored
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1284
FunctionTestModelTUI_Official_DeleteCancel
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1440
FunctionTestModelTUI_Official_DeleteOnCustomModelInputIgnored
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1328
← previousnext →4,401–4,500 of 7,169, ranked by callers