MCPcopy Create free account

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

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

FunctionTestParseReviewFlags_NormalizedFormat
(t *testing.T)
cmd/opencodereview/flags_test.go:369
FunctionTestParseReviewFlags_OutputPath
(t *testing.T)
cmd/opencodereview/flags_test.go:321
FunctionTestParseReviewFlags_PlainReviewKeepsWorkspaceMode
(t *testing.T)
cmd/opencodereview/flags_test.go:163
FunctionTestParseReviewFlags_PreviewWithResume
(t *testing.T)
cmd/opencodereview/flags_test.go:64
FunctionTestParseReviewFlags_ShortFlags
(t *testing.T)
cmd/opencodereview/flags_test.go:227
FunctionTestParseReviewFlags_ToWithoutFrom
(t *testing.T)
cmd/opencodereview/flags_test.go:220
FunctionTestParseReviewMode
(t *testing.T)
internal/tool/filereader_test.go:11
FunctionTestParseScanFlags_AllStringFlags
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:268
FunctionTestParseScanFlags_BareCommandScansWholeRepo
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:112
FunctionTestParseScanFlags_BooleanFlags
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:209
FunctionTestParseScanFlags_DefaultsValid
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:152
FunctionTestParseScanFlags_HelpFlag
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:181
FunctionTestParseScanFlags_IntFlags
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:304
FunctionTestParseScanFlags_InvalidFormat
(t *testing.T)
cmd/opencodereview/flags_test.go:362
FunctionTestParseScanFlags_ModelOverride
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:228
FunctionTestParseScanFlags_NormalizedFormat
(t *testing.T)
cmd/opencodereview/flags_test.go:379
FunctionTestParseScanFlags_OutputPath
(t *testing.T)
cmd/opencodereview/flags_test.go:345
FunctionTestParseScanFlags_PathNarrowsScope
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:171
FunctionTestParseScanFlags_PreviewWithResume
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:258
FunctionTestParseScanFlags_ProviderAndModelOverrides
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:238
FunctionTestParseScanFlags_RejectsInvalidAudience
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:122
FunctionTestParseScanFlags_RejectsNegativeMaxGitProcs
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:142
FunctionTestParseScanFlags_RejectsNegativeMaxTokens
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:199
FunctionTestParseScanFlags_RejectsNegativeMaxTokensBudget
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:189
FunctionTestParseScanFlags_RejectsNegativeMaxTools
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:132
FunctionTestParseScanFlags_Resume
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:248
FunctionTestParseShellRC
(t *testing.T)
internal/llm/message_test.go:276
FunctionTestParseShellRC_Incomplete
(t *testing.T)
internal/llm/message_test.go:338
FunctionTestParseShellRC_ModelOverride
(t *testing.T)
internal/llm/message_test.go:314
FunctionTestParseShellRC_NonexistentFile
(t *testing.T)
internal/llm/message_test.go:359
FunctionTestParseTemplate_CommentsToolbarMockup
(t *testing.T)
internal/viewer/server_startserver_test.go:224
FunctionTestParseTemplate_ExistingCodeLineNumbers
TestParseTemplate_ExistingCodeLineNumbers asserts the rendered session page, not which helper ran: a trustworthy range gets a per-line gutter, anythin
internal/viewer/server_startserver_test.go:311
FunctionTestParseTemplate_NonExistent
(t *testing.T)
internal/viewer/server_extra_test.go:54
FunctionTestParseTemplate_ReposHTML
(t *testing.T)
internal/viewer/server_extra_test.go:24
FunctionTestParseTemplate_SessionHTML
(t *testing.T)
internal/viewer/server_extra_test.go:44
FunctionTestParseTemplate_SessionWithComments
TestParseTemplate_SessionWithComments renders session.html with review comments spanning several severities and categories so the template helpers (se
internal/viewer/server_startserver_test.go:172
FunctionTestParseTemplate_SessionsHTML
(t *testing.T)
internal/viewer/server_extra_test.go:34
FunctionTestParseTemplate_SharedHeader
Execute each page independently: parsing alone misses undefined partials, and parsing every page together can overwrite page-specific breadcrumbs.
internal/viewer/server_extra_test.go:63
FunctionTestParseTimeoutEnv
(t *testing.T)
internal/llm/resolver_test.go:1914
FunctionTestParseToolArgs_NoValidJSONStillErrors
TestParseToolArgs_NoValidJSONStillErrors confirms the recovery path is a pure addition: a raw string with no balanced JSON value anywhere still return
internal/reviewtask/tool_args_json_test.go:35
FunctionTestParseToolArgs_TrailingContentAfterValidJSON
TestParseToolArgs_TrailingContentAfterValidJSON is the reported bug: a harmony-format model (openai.gpt-oss-20b-1:0 on Bedrock) leaks control tokens r
internal/reviewtask/tool_args_json_test.go:13
FunctionTestParserConfigurationIsExplicit
(t *testing.T)
acp/cmd/ocr-acp/main_test.go:23
FunctionTestParserRejectionPreservesRequestDiagnostics
(t *testing.T)
acp/internal/intent/llm/diagnostics_test.go:132
FunctionTestParserWithRepo
(t *testing.T)
acp/internal/intent/parser_extra_test.go:15
FunctionTestPartialResultRetainsDiagnosticsAndSuggestions
(t *testing.T)
acp/internal/adapter/presentation/report_test.go:18
FunctionTestPartitionMessages_AccountsForToolCalls
(t *testing.T)
internal/llmloop/compression_test.go:88
FunctionTestPartitionMessages_CompleteRounds
(t *testing.T)
internal/llmloop/compression_test.go:113
FunctionTestPartitionMessages_CompressionNeeded
(t *testing.T)
internal/llmloop/runner_test.go:293
FunctionTestPartitionMessages_EverythingFits
(t *testing.T)
internal/llmloop/compression_test.go:159
FunctionTestPartitionMessages_NoAssistant
(t *testing.T)
internal/llmloop/compression_test.go:134
FunctionTestPartitionMessages_ShortConversation
(t *testing.T)
internal/llmloop/compression_test.go:145
FunctionTestPassThroughCPInput
TestPassThroughCPInput drives each custom-provider input step and confirms a key press clears formError, including the masked-API-key replacement bran
cmd/opencodereview/provider_tui_cpinput_test.go:99
FunctionTestPatchPathSelectionIsExactAcrossTreeShapes
(test *testing.T)
internal/behaviortask/prepare_test.go:155
FunctionTestPathMatches
(t *testing.T)
internal/scan/provider_test.go:41
FunctionTestPeekSession
(t *testing.T)
internal/viewer/store_test.go:311
FunctionTestPeekSessionUnknownManifestIsLegacy
(t *testing.T)
internal/viewer/store_test.go:411
FunctionTestPeekSessionUsesV1ManifestCoverage
(t *testing.T)
internal/viewer/store_test.go:392
FunctionTestPeekSession_MissingFile
(t *testing.T)
internal/viewer/store_test.go:361
FunctionTestPeekSession_NoSessionEnd
(t *testing.T)
internal/viewer/store_test.go:368
FunctionTestPendingFailureCauseSweepsWithoutForcingFailed
A pending failure cause attributes the undecided items without escalating the run: it is a controlled coverage truncation, so anything already covered
internal/session/manifest_test.go:176
FunctionTestPendingFailureCauseWithNoCoverageIsFailed
When the truncation leaves nothing covered, the same coverage rule that produced partial above produces failed here — no run_failure needed. This is t
internal/session/manifest_test.go:203
FunctionTestPendingLoginConcurrentAccountOperations
(t *testing.T)
internal/chatgptauth/recovery_test.go:225
FunctionTestPendingRefreshLogoutAndClear
(t *testing.T)
internal/chatgptauth/refresh_recovery_test.go:187
FunctionTestPendingRefreshRecoversAfterIDAndAccessExpiry
(t *testing.T)
internal/chatgptauth/refresh_recovery_test.go:227
FunctionTestPendingRefreshRejectsUnverifiedIdentity
(t *testing.T)
internal/chatgptauth/refresh_recovery_test.go:110
FunctionTestPersistAddedModelName
TestPersistAddedModelName covers modelTUIModel.persistAddedModelName: empty name, nil config, custom success, official success, and both save failures
cmd/opencodereview/provider_tui_persist_test.go:280
FunctionTestPersistCustomModelName
TestPersistCustomModelName covers the providerTUIModel.persistCustomModelName branches: empty name, nil config, custom-tab success, official-tab succe
cmd/opencodereview/provider_tui_persist_test.go:17
FunctionTestPhaseEnabled
(t *testing.T)
internal/scan/coverage_test.go:1298
FunctionTestPhaseEnabled_GatedByTemplateAndFlag
(t *testing.T)
internal/scan/estimate_test.go:150
FunctionTestPhaseEvent_Success
(t *testing.T)
internal/telemetry/events_test.go:131
FunctionTestPhaseEvent_WithError
(t *testing.T)
internal/telemetry/events_test.go:137
FunctionTestPlanEnabledFor
(t *testing.T)
internal/scan/agent_test.go:216
FunctionTestPlanRequired
(t *testing.T)
internal/config/template/template_test.go:502
FunctionTestPlanToolReferencesRemainReferenceOnly
(test *testing.T)
internal/agent/coverage_test.go:655
FunctionTestPositionalSignature
(t *testing.T)
cmd/opencodereview/arg_errors_test.go:260
FunctionTestPostErrors
(t *testing.T)
acp/internal/intent/llm/client_test.go:342
FunctionTestPreparationAndArtifactFailures
(test *testing.T)
internal/behaviortask/context_test.go:117
FunctionTestPrepareFixedInput
(test *testing.T)
internal/behaviortask/prepare_test.go:105
FunctionTestPreparePreservesInventoryAcrossRenameLimit
(test *testing.T)
internal/behaviortask/scope_regression_test.go:17
FunctionTestPrepareRejectsWorkspace
(test *testing.T)
internal/behaviortask/prepare_test.go:98
FunctionTestPrepareRenameExclusion
(test *testing.T)
internal/behaviortask/prepare_test.go:208
FunctionTestPrepareReviewCodeTools
(test *testing.T)
cmd/opencodereview/code_access_test.go:20
FunctionTestPrepareReviewCodeToolsErrors
(test *testing.T)
cmd/opencodereview/code_access_test.go:78
FunctionTestPrepareRootAndEmptyRange
(test *testing.T)
internal/behaviortask/prepare_test.go:187
FunctionTestPreparedReplaySmoke
(test *testing.T)
internal/behaviortask/replay_test.go:18
FunctionTestPreterminatedRequestDoesNotStartOCR
(t *testing.T)
acp/internal/orchestrator/termination_test.go:30
FunctionTestPreview
TestPreview exercises Agent.Preview against a real workspace diff so the full preview-building path (loadDiffs + whyExcluded + entry assembly) runs.
internal/agent/preview_run_test.go:58
FunctionTestPreviewEmptyEntriesNotNil
TestPreviewEmptyEntriesNotNil pins that a clean workspace still yields a non-nil Entries slice, so JSON output marshals `"files":[]` instead of `"file
internal/agent/preview_run_test.go:396
FunctionTestPreviewEntry_ExcludeReasonOmitEmpty
(t *testing.T)
internal/model/model_test.go:64
FunctionTestPreviewEntry_JSONRoundTrip
(t *testing.T)
internal/model/model_test.go:39
FunctionTestPreviewKeepsChangesetOrder
TestPreviewKeepsChangesetOrder pins issue #1236: provider-directory entries sit where Git lists them rather than ahead of every other file, so the pre
internal/agent/preview_run_test.go:167
FunctionTestPreviewMarksOversizedDiffTooLarge
TestPreviewMarksOversizedDiffTooLarge pins that preview applies the per-file diff-size ceiling the real run applies before dispatch, and reports it un
internal/agent/preview_run_test.go:250
FunctionTestPreviewMatchesRunSelectedCoverage
TestPreviewMatchesRunSelectedCoverage is the property #782 asked for: preview's will_review set must equal the set a fresh, non-resumed, unbudgeted ru
internal/agent/preview_run_test.go:293
FunctionTestPreviewMaxTokensMatchesRun
TestPreviewMaxTokensMatchesRun pins the one input preview and the run do not share: the per-file token ceiling. Both resolve it through the same resol
cmd/opencodereview/review_helpers_test.go:181
FunctionTestPreviewOmitsUntrackedProviderDirFile
TestPreviewOmitsUntrackedProviderDirFile pins the tracked-only scope of issue #1235: an untracked file under a provider directory is dropped before a
internal/agent/preview_run_test.go:134
FunctionTestPreviewShowsProviderExcludedVendorDiff
TestPreviewShowsProviderExcludedVendorDiff pins issue #1197: a tracked file under vendor/ is intentionally not reviewable, but Preview must still show
internal/agent/preview_run_test.go:88
FunctionTestPreview_DoesNotMutateAgentItems
TestPreview_DoesNotMutateAgentItems guards against re-introducing a side-effect that pre-populated a.items, which made subsequent Run calls on the sam
internal/scan/agent_test.go:103
FunctionTestPreview_EmptyResultEntriesIsNonNilSlice
TestPreview_EmptyResultEntriesIsNonNilSlice prevents `"files":null` in JSON output when there is nothing reviewable to enumerate.
internal/scan/agent_test.go:127
FunctionTestPrintDiffLine
(t *testing.T)
cmd/opencodereview/output_helpers_test.go:663
FunctionTestPrintDiffLine_NoColor
(t *testing.T)
cmd/opencodereview/output_color_test.go:66
← previousnext →5,001–5,100 of 7,390, ranked by callers