MCPcopy Create free account

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

Functions3,737 in github.com/alibaba/open-code-review

FunctionTestDefaultConfig
(t *testing.T)
internal/telemetry/config_test.go:12
FunctionTestDelegateContextMergeBaseEmptyForNonRange
(t *testing.T)
cmd/opencodereview/delegate_helpers_test.go:57
FunctionTestDelegateContextMergeBase_Range
(t *testing.T)
cmd/opencodereview/delegate_exec_test.go:247
FunctionTestDelegateContextResolver
(t *testing.T)
cmd/opencodereview/delegate_helpers_test.go:68
FunctionTestDelegateContextReviewMode
(t *testing.T)
cmd/opencodereview/delegate_helpers_test.go:37
FunctionTestDeleteCustomProvider_NotFound
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1153
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
FunctionTestDiffMap_Get
(t *testing.T)
internal/tool/file_read_diff_test.go:21
FunctionTestDiffModesPreserveNonASCIIPaths
(t *testing.T)
internal/diff/git_test.go:101
FunctionTestDiffStatus
(t *testing.T)
internal/agent/preview_test.go:501
FunctionTestDiff_JSONRoundTrip
(t *testing.T)
internal/model/model_test.go:11
FunctionTestDiscoverRepos_Empty
(t *testing.T)
internal/viewer/store_test.go:24
FunctionTestDiscoverRepos_FindsRepos
(t *testing.T)
internal/viewer/store_test.go:59
FunctionTestDiscoverRepos_NonExistentDir
(t *testing.T)
internal/viewer/store_test.go:35
FunctionTestDiscoverRepos_SkipsDirsWithNoJSONL
(t *testing.T)
internal/viewer/store_test.go:99
FunctionTestDiscoverRepos_SkipsFiles
(t *testing.T)
internal/viewer/store_test.go:45
FunctionTestDiscoverRepos_SkipsUnreadableSubdir
(t *testing.T)
internal/viewer/store_load_test.go:574
FunctionTestDispatchSubtasks_AllDeleted
(t *testing.T)
internal/agent/agent_test.go:914
FunctionTestDispatchSubtasks_AllFailed
(t *testing.T)
internal/scan/coverage_test.go:703
FunctionTestDispatchSubtasks_AllFailed
(t *testing.T)
internal/agent/coverage_test.go:664
FunctionTestDispatchSubtasks_AllFilteredBySize
(t *testing.T)
internal/agent/coverage_test.go:636
FunctionTestDispatchSubtasks_IncompleteMainTaskMarksPartialFailure
(t *testing.T)
internal/agent/agent_test.go:874
FunctionTestDispatchSubtasks_MainTaskWithoutTaskDoneIsNotReusableCheckpoint
(t *testing.T)
internal/agent/agent_test.go:804
FunctionTestDispatchSubtasks_ResumeMultiBatchAndChained
(t *testing.T)
internal/scan/coverage_test.go:904
FunctionTestDispatchSubtasks_ResumeRerunsChangedContent
(t *testing.T)
internal/scan/coverage_test.go:854
FunctionTestDispatchSubtasks_ResumeSkipsCompletedFiles
(t *testing.T)
internal/scan/coverage_test.go:630
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:181
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_TokenThresholdSkipIsNotReusableCheckpoint
(t *testing.T)
internal/agent/agent_test.go:736
FunctionTestDispatchSubtasks_UnlimitedBudget
TestDispatchSubtasks_UnlimitedBudget verifies MaxTokensBudget=0 runs every file (default behavior unchanged — regression guard).
internal/agent/budget_test.go:245
FunctionTestDispatchSubtasks_WithFakeLLM
(t *testing.T)
internal/agent/agent_test.go:686
FunctionTestDispatchSubtasks_WithoutTaskDoneIsAllFailed
(t *testing.T)
internal/scan/coverage_test.go:733
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
FunctionTestDuplicateRegistrationIgnored
Duplicate registration keeps the first entry and is not an error.
internal/session/manifest_test.go:420
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:459
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:210
FunctionTestEmitFailureUsage_JSONEmitsStructuredRecord
TestEmitFailureUsage_JSONEmitsStructuredRecord verifies the JSON form emits a parseable record to stderr with budget_exceeded=false.
cmd/opencodereview/budget_output_test.go:168
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:147
FunctionTestEmitRunResult_AgentJSONDoesNotRestore
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:456
FunctionTestEmitRunResult_AgentTextRestoresQuiet
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:441
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:245
FunctionTestEmitRunResult_JSONBudgetDoesNotOverrideLegacyStatus
TestEmitRunResult_JSONBudgetDoesNotOverrideLegacyStatus guards the legacy (manifest-less) path: budgetExceeded must not rewrite the warning-derived st
cmd/opencodereview/budget_output_test.go:92
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:25
FunctionTestEmitRunResult_JSONIncludesSessionID
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:546
FunctionTestEmitRunResult_JSONLLMIdentityNamedProvider
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:110
FunctionTestEmitRunResult_JSONLLMIdentityOmitsUnknownProvider
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:127
FunctionTestEmitRunResult_JSONManifestMatchesPersistedSessionEnd
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:202
FunctionTestEmitRunResult_JSONNoBudgetIsSuccess
TestEmitRunResult_JSONNoBudgetIsSuccess verifies the default path is unchanged: BudgetExceeded()==false yields the normal status (regression guard tha
cmd/opencodereview/budget_output_test.go:119
FunctionTestEmitRunResult_JSONNoFiles
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:89
FunctionTestEmitRunResult_JSONNoFilesTraceID
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:518
FunctionTestEmitRunResult_JSONSkippedIncludesManifest
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:183
FunctionTestEmitRunResult_JSONTraceIDFromContext
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:488
FunctionTestEmitRunResult_JSONUsesManifestTerminalState
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:147
FunctionTestEmitRunResult_JSONWithComments
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:293
FunctionTestEmitRunResult_JSONWithResumeInfo
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:321
FunctionTestEmitRunResult_NilQuietHandle
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:477
FunctionTestEmitRunResult_TextCompleteReportsFindingsAndWaived
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:372
FunctionTestEmitRunResult_TextDoesNotPrintSuccessfulSessionHint
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:392
FunctionTestEmitRunResult_TextNoComments
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:347
FunctionTestEmitRunResult_TextPartialNeverLooksGood
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:360
FunctionTestEmitRunResult_TextWithComments
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:405
FunctionTestEmitRunResult_TextWithProjectSummary
(t *testing.T)
cmd/opencodereview/emit_run_result_test.go:422
FunctionTestEncodeRepoPath
(t *testing.T)
internal/session/persist_test.go:23
FunctionTestEncodingForModel
(t *testing.T)
internal/llm/client_test.go:1293
FunctionTestEndSpan_NoError
(t *testing.T)
internal/telemetry/span_test.go:79
FunctionTestEndSpan_WithError
(t *testing.T)
internal/telemetry/span_test.go:85
FunctionTestEnsureMessagesSuffix
(t *testing.T)
internal/llm/resolver_test.go:2169
FunctionTestEnsureMetrics_Idempotent
(t *testing.T)
internal/telemetry/metrics_test.go:47
FunctionTestEnsureModelInList
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1306
FunctionTestEnsureTelemetry
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:794
FunctionTestEnterEditCustomProvider_ProtocolIndex
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:2844
FunctionTestErrorEvent_Disabled
(t *testing.T)
internal/telemetry/events_test.go:108
FunctionTestErrorEvent_Enabled
(t *testing.T)
internal/telemetry/events_test.go:91
FunctionTestErrorEvent_NilCtx
(t *testing.T)
internal/telemetry/events_test.go:103
FunctionTestErrorEvent_NilErr
(t *testing.T)
internal/telemetry/events_test.go:97
FunctionTestEstimateCost_EmptyItems
(t *testing.T)
internal/scan/estimate_test.go:94
FunctionTestEstimateCost_ScalesWithContentAndPhases
(t *testing.T)
internal/scan/estimate_test.go:32
FunctionTestEstimateDiffCost
TestEstimateDiffCost verifies the aggregate estimate sums per-file costs, skips deleted/empty diffs, and satisfies TotalTokens == Input + Output. Used
internal/agent/estimate_test.go:66
FunctionTestEstimateDiffCost_ScalesWithContent
TestEstimateDiffCost_ScalesWithContent verifies that a larger diff projects strictly more tokens than a small one (the estimate isn't a flat constant)
internal/agent/estimate_test.go:96
FunctionTestEstimateDiffFileTokens_ZeroForSkipped
TestEstimateDiffFileTokens_ZeroForSkipped verifies deleted and empty diffs project to zero tokens so they never trip the budget gate (they are skipped
internal/agent/estimate_test.go:43
FunctionTestEstimateFileTokens
(t *testing.T)
internal/scan/estimate_test.go:67
FunctionTestEstimate_StringMentionsTokens
(t *testing.T)
internal/scan/estimate_test.go:101
FunctionTestEvent_Disabled
(t *testing.T)
internal/telemetry/events_test.go:73
FunctionTestEvent_Enabled
(t *testing.T)
internal/telemetry/events_test.go:67
FunctionTestEvent_NilCtx
(t *testing.T)
internal/telemetry/events_test.go:80
FunctionTestEventf_Enabled
(t *testing.T)
internal/telemetry/events_test.go:85
FunctionTestExcludeReasonConstants
(t *testing.T)
internal/model/model_test.go:88
FunctionTestExcludeToolDef
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:14
FunctionTestExcludeToolDef_AbsentName
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:36
FunctionTestExcludedDirs
(t *testing.T)
internal/diff/gitignore_test.go:12
FunctionTestExecuteDelegatePreviewCreatesNoSession
TestExecuteDelegatePreviewCreatesNoSession covers the third preview entry point, which built its agent the same leaky way as review and scan.
cmd/opencodereview/delegate_exec_test.go:133
FunctionTestExecuteDelegatePreviewJSON
(t *testing.T)
cmd/opencodereview/delegate_exec_test.go:157
FunctionTestExecuteDelegatePreview_Commit
(t *testing.T)
cmd/opencodereview/delegate_exec_test.go:119
FunctionTestExecuteDelegatePreview_Range
(t *testing.T)
cmd/opencodereview/delegate_exec_test.go:108
← previousnext →1,901–2,000 of 3,737, ranked by callers