MCPcopy Create free account

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

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

FunctionTestDefaultAuthHeader
(t *testing.T)
internal/llm/message_test.go:385
FunctionTestDefaultConfig
(t *testing.T)
internal/telemetry/config_test.go:12
FunctionTestDefaultStoreAndInvalidStores
(t *testing.T)
internal/chatgptauth/io_test.go:20
FunctionTestDefaultToolNamesAreUnique
(test *testing.T)
internal/config/toolsconfig/toolsconfig_test.go:53
FunctionTestDefaultToolNamesMatchDefinitions
(test *testing.T)
internal/config/toolsconfig/toolsconfig_test.go:71
FunctionTestDelegateContextMergeBaseEmptyForNonRange
(t *testing.T)
cmd/opencodereview/delegate_helpers_test.go:58
FunctionTestDelegateContextMergeBase_Range
(t *testing.T)
cmd/opencodereview/delegate_exec_test.go:272
FunctionTestDelegateContextResolver
(t *testing.T)
cmd/opencodereview/delegate_helpers_test.go:69
FunctionTestDelegateContextReviewMode
(t *testing.T)
cmd/opencodereview/delegate_helpers_test.go:38
FunctionTestDelegateDiffExamples
(t *testing.T)
internal/delegate/instructions_test.go:204
FunctionTestDelegateDiffModes
(t *testing.T)
cmd/opencodereview/flags_test.go:180
FunctionTestDelegateFromWithoutToUsesHEADRangeE2E
(t *testing.T)
cmd/opencodereview/default_to_head_e2e_test.go:109
FunctionTestDelegateGitIsolation
(t *testing.T)
internal/delegate/instructions_test.go:304
FunctionTestDelegatePagerPTY
(t *testing.T)
internal/delegate/instructions_test.go:377
FunctionTestDelegatePagerProcess
(t *testing.T)
internal/delegate/instructions_test.go:364
FunctionTestDeleteCustomProvider_NotFound
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1476
FunctionTestDeleteSessionAt_DeletesALocationFromTheSearch
(t *testing.T)
internal/session/delete_test.go:329
FunctionTestDeleteSessionAt_RefusesAPathThatDisagreesWithItsParts
(t *testing.T)
internal/session/delete_test.go:309
FunctionTestDeleteSessionAt_RefusesATraversingEncodedDir
(t *testing.T)
internal/session/delete_test.go:286
FunctionTestDeleteSessionAt_RefusesPathOutsideSessionsRoot
(t *testing.T)
internal/session/delete_test.go:270
FunctionTestDeleteSessionAt_UnattributableSessionIsStillDeletable
(t *testing.T)
internal/session/delete_test.go:182
FunctionTestDeleteSession_MissingSessionIsReportedNotSilentlyIgnored
(t *testing.T)
internal/session/delete_test.go:60
FunctionTestDeleteSession_RefusesASessionRecordedForAnotherRepo
(t *testing.T)
internal/session/delete_test.go:121
FunctionTestDeleteSession_RefusesAnEmptyID
(t *testing.T)
internal/session/delete_test.go:112
FunctionTestDeleteSession_RefusesIdsThatEscapeTheSessionsDirectory
(t *testing.T)
internal/session/delete_test.go:71
FunctionTestDeleteSession_RemovesOnlyTheNamedSession
(t *testing.T)
internal/session/delete_test.go:42
FunctionTestDeleteSession_UnattributableSessionIsRefusedAgainstARepository
(t *testing.T)
internal/session/delete_test.go:168
FunctionTestDescribeFilesNoManifest
TestDescribeFilesNoManifest covers the branch where RunManifest is nil.
cmd/opencodereview/session_display_more_test.go:77
FunctionTestDescribeRange
TestDescribeRange covers each review-mode branch plus the fallthrough.
cmd/opencodereview/session_display_more_test.go:23
FunctionTestDescribeStart
TestDescribeStart covers the zero-time and formatted branches.
cmd/opencodereview/session_display_more_test.go:65
FunctionTestDescribeTimeoutIndependentCallerDeadline
(t *testing.T)
internal/llm/request_timeout_test.go:164
FunctionTestDiagnosticMetadataSurvivesShortConfigurationValues
(t *testing.T)
acp/internal/intent/llm/diagnostics_test.go:264
FunctionTestDiagnosticsBoundProviderOutput
(t *testing.T)
acp/internal/intent/llm/diagnostics_test.go:215
FunctionTestDiagnosticsDoNotReplaceProgressActivity
(t *testing.T)
acp/internal/adapter/presentation/progress_test.go:19
FunctionTestDiagnosticsRedactUsernameCredentials
(t *testing.T)
acp/internal/intent/llm/diagnostics_test.go:223
FunctionTestDiffMapPathsKeepsEmptyDiff
A path that holds an empty diff is still a path the message can offer.
internal/tool/diffmap_test.go:56
FunctionTestDiffMapPathsSorted
Paths are reported sorted so a message built from them is stable.
internal/tool/diffmap_test.go:47
FunctionTestDiffMapReplacementDropsEarlierPaths
The not-found message is derived from the snapshot the provider currently holds, so its correctness rests on two properties of that snapshot: it is re
internal/tool/diffmap_test.go:21
FunctionTestDiffMap_Get
(t *testing.T)
internal/tool/file_read_diff_test.go:21
FunctionTestDiffModesPreserveCQuotedPaths
(t *testing.T)
internal/diff/git_cquoted_test.go:56
FunctionTestDiffModesPreserveNonASCIIPaths
(t *testing.T)
internal/diff/git_test.go:334
FunctionTestDiffStatus
(t *testing.T)
internal/agent/preview_test.go:602
FunctionTestDiff_JSONRoundTrip
(t *testing.T)
internal/model/model_test.go:11
FunctionTestDisconnectReapsOCRBeforeAdapterExit
(t *testing.T)
acp/cmd/ocr-acp/main_test.go:57
FunctionTestDiscoverRepos_Empty
(t *testing.T)
internal/viewer/store_test.go:161
FunctionTestDiscoverRepos_FindsRepos
(t *testing.T)
internal/viewer/store_test.go:196
FunctionTestDiscoverRepos_NonExistentDir
(t *testing.T)
internal/viewer/store_test.go:172
FunctionTestDiscoverRepos_SkipsDirsWithNoJSONL
(t *testing.T)
internal/viewer/store_test.go:236
FunctionTestDiscoverRepos_SkipsFiles
(t *testing.T)
internal/viewer/store_test.go:182
FunctionTestDiscoverRepos_SkipsUnreadableSubdir
(t *testing.T)
internal/viewer/store_load_test.go:582
FunctionTestDiscoveryAndJWKSFailures
(t *testing.T)
internal/chatgptauth/lifecycle_test.go:223
FunctionTestDiscoveryWriterFailureAndDuplicateBoundaries
(t *testing.T)
acp/internal/adapter/transport/discovery_test.go:36
FunctionTestDispatchSubtasks_AllDeleted
(t *testing.T)
internal/agent/agent_test.go:1276
FunctionTestDispatchSubtasks_AllFailed
(t *testing.T)
internal/scan/coverage_test.go:906
FunctionTestDispatchSubtasks_AllFailed
(t *testing.T)
internal/agent/coverage_test.go:995
FunctionTestDispatchSubtasks_AllFilteredBySize
(t *testing.T)
internal/agent/coverage_test.go:967
FunctionTestDispatchSubtasks_GraceRoundLimitVisibleWithZeroFindings
The same completion, but with zero findings and nothing after the file, is the case where the limit would otherwise vanish entirely: no scan_subtask_e
internal/scan/coverage_test.go:1076
FunctionTestDispatchSubtasks_GraceRoundMixedTaskDoneNotCheckpointed
(t *testing.T)
internal/scan/coverage_test.go:1195
FunctionTestDispatchSubtasks_GraceRoundTaskDoneCheckpointed
A file whose tool budget runs out mid-review but which the model then marks done in the grace round must be checkpointed as completed. Treating it as
internal/scan/coverage_test.go:994
FunctionTestDispatchSubtasks_IncompleteMainTaskMarksPartialFailure
(t *testing.T)
internal/agent/agent_test.go:1230
FunctionTestDispatchSubtasks_MainTaskWithoutTaskDoneIsNotReusableCheckpoint
(t *testing.T)
internal/agent/agent_test.go:1147
FunctionTestDispatchSubtasks_PersistsDedupedCommentsForResume
(t *testing.T)
internal/scan/coverage_test.go:1396
FunctionTestDispatchSubtasks_PreservesMixedDedupCheckpointProvenance
(t *testing.T)
internal/scan/coverage_test.go:1594
FunctionTestDispatchSubtasks_PreservesReusedCheckpointAfterDedup
(t *testing.T)
internal/scan/coverage_test.go:1516
FunctionTestDispatchSubtasks_ResumeMultiBatchAndChained
(t *testing.T)
internal/scan/coverage_test.go:1725
FunctionTestDispatchSubtasks_ResumeRerunsChangedContent
(t *testing.T)
internal/scan/coverage_test.go:1674
FunctionTestDispatchSubtasks_ResumeSkipsCompletedFiles
(t *testing.T)
internal/scan/coverage_test.go:833
FunctionTestDispatchSubtasks_TokenBudgetBeforeFirstFileIsFailed
TestDispatchSubtasks_TokenBudgetBeforeFirstFileIsFailed pins the other side of the exit-code boundary: when the budget is too small to admit even the
internal/agent/budget_test.go:182
FunctionTestDispatchSubtasks_TokenBudgetSkipsNextRoundAfterCompletedRound
TestDispatchSubtasks_TokenBudgetSkipsNextRoundAfterCompletedRound covers the round gate rather than the in-conversation check: a group whose round 1 e
internal/agent/budget_test.go:423
FunctionTestDispatchSubtasks_TokenBudgetStopsDispatch
TestDispatchSubtasks_TokenBudgetStopsDispatch verifies the per-file gate stops dispatch once the running token total + next-file look-ahead would blow
internal/agent/budget_test.go:87
FunctionTestDispatchSubtasks_TokenBudgetStopsInFlightGroup
TestDispatchSubtasks_TokenBudgetStopsInFlightGroup pins the gap the dispatch look-ahead cannot close: a group admitted while usage is still low can ou
internal/agent/budget_test.go:317
FunctionTestDispatchSubtasks_TokenThresholdSkipIsNotReusableCheckpoint
(t *testing.T)
internal/agent/agent_test.go:1079
FunctionTestDispatchSubtasks_UnlimitedBudget
TestDispatchSubtasks_UnlimitedBudget verifies MaxTokensBudget=0 runs every file (default behavior unchanged — regression guard).
internal/agent/budget_test.go:247
FunctionTestDispatchSubtasks_WithFakeLLM
(t *testing.T)
internal/agent/agent_test.go:1029
FunctionTestDispatchSubtasks_WithoutTaskDoneIsAllFailed
(t *testing.T)
internal/scan/coverage_test.go:936
FunctionTestDisplayAddr
(t *testing.T)
internal/viewer/hostguard_test.go:166
FunctionTestDisplayMode
TestDisplayMode covers the empty and non-empty branches.
cmd/opencodereview/session_display_more_test.go:13
FunctionTestDisplayURL
TestDisplayURL pins the host to the *requested* address and the port to the listener. Deriving the host from the listener instead makes the printed UR
internal/viewer/server_startserver_test.go:48
FunctionTestDisplayURL_AgreesWithHostGuard
TestDisplayURL_AgreesWithHostGuard is the regression test for the auto-open path: whatever URL we print and hand to the browser must survive the viewe
internal/viewer/server_startserver_test.go:90
FunctionTestDuplicateRegistrationIgnored
Duplicate registration keeps the first entry and is not an error.
internal/session/manifest_test.go:422
FunctionTestDynamic
(t *testing.T)
internal/tool/definitions_test.go:108
FunctionTestDynamic_PanicsOnEmpty
(t *testing.T)
internal/tool/definitions_test.go:115
FunctionTestDynamic_PanicsOnReserved
(t *testing.T)
internal/tool/definitions_test.go:124
FunctionTestEffectivePath
(t *testing.T)
internal/agent/preview_test.go:560
FunctionTestEffortPreset_UnknownFallsToDefault
(t *testing.T)
internal/config/template/effort_test.go:61
FunctionTestEmbeddedAssetsHaveNoTerminators
TestEmbeddedAssetsHaveNoTerminators is the static half of the inlining contract. template.CSS and template.JS pass their contents through unescaped, s
internal/viewer/export_test.go:176
FunctionTestEmitFailureUsage_BudgetExceededPropagated
TestEmitFailureUsage_BudgetExceededPropagated closes the residual edge the OCR review flagged: a budget gate can trip after dispatching N files, and i
cmd/opencodereview/budget_output_test.go:245
FunctionTestEmitFailureUsage_JSONCarriesRetryReport
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:700
FunctionTestEmitFailureUsage_JSONEmitsStructuredRecord
TestEmitFailureUsage_JSONEmitsStructuredRecord verifies the JSON form emits a parseable record to stderr with budget_exceeded=false.
cmd/opencodereview/budget_output_test.go:187
FunctionTestEmitFailureUsage_NilReportUnchanged
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:729
FunctionTestEmitFailureUsage_TextCarriesRetryReport
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:717
FunctionTestEmitFailureUsage_TextEmitsStructuredRecord
TestEmitFailureUsage_TextEmitsStructuredRecord verifies the non-budget failure path emits a structured usage record to stderr with the token totals an
cmd/opencodereview/budget_output_test.go:149
FunctionTestEmitFailureUsage_TextOmitsZeroToolFailures
(t *testing.T)
cmd/opencodereview/budget_output_test.go:172
FunctionTestEmitRunResult_AgentJSONDoesNotRestore
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:492
FunctionTestEmitRunResult_AgentTextRestoresQuiet
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:477
FunctionTestEmitRunResult_BudgetExceededFalseOmittedFromJSON
TestEmitRunResult_BudgetExceededFalseOmittedFromJSON is a regression guard that the omitempty tag on BudgetExceeded keeps the success JSON free of the
cmd/opencodereview/budget_output_test.go:280
FunctionTestEmitRunResult_JSONBudgetDoesNotOverrideLegacyStatus
TestEmitRunResult_JSONBudgetDoesNotOverrideLegacyStatus guards the legacy (manifest-less) path: budgetExceeded must not rewrite the warning-derived st
cmd/opencodereview/budget_output_test.go:94
FunctionTestEmitRunResult_JSONBudgetStopIsPartial
TestEmitRunResult_JSONBudgetStopIsPartial pins the unified terminal-state contract for a controlled budget stop that still covered something: the top-
cmd/opencodereview/budget_output_test.go:27
FunctionTestEmitRunResult_JSONCarriesRetryReport
--- retry report at the emit boundary (#368 P5) --- These cases pin how a frozen retry report reaches the two run exits, emitRunResult and emitFailure
cmd/opencodereview/emit_run_result_test.go:604
FunctionTestEmitRunResult_JSONHasNoReportText
JSON mode must keep stdout a single JSON document, so the text renderer never runs there.
cmd/opencodereview/emit_run_result_test.go:680
← previousnext →3,701–3,800 of 7,169, ranked by callers