MCPcopy Create free account

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

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

FunctionTestRunSessionShow_JSONNoItemsIsArray
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:395
FunctionTestRunSessionShow_MissingAndInvalidIDs
(t *testing.T)
cmd/opencodereview/session_show_anywhere_test.go:123
FunctionTestRunSessionShow_MissingCheckoutAndMetadata
(t *testing.T)
cmd/opencodereview/session_show_anywhere_test.go:59
FunctionTestRunSessionShow_MissingID
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:467
FunctionTestRunSessionShow_RepoDoesNotFallBackToOtherRepositories
(t *testing.T)
cmd/opencodereview/session_show_anywhere_test.go:114
FunctionTestRunSessionShow_Text
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:246
FunctionTestRunSession_UnknownSubcommand
(t *testing.T)
cmd/opencodereview/session_cmd_test.go:510
FunctionTestRun_EmptyTemplate
(t *testing.T)
internal/scan/coverage_test.go:639
FunctionTestRun_FullPipeline
(t *testing.T)
internal/scan/coverage_test.go:680
FunctionTestRun_NoReviewableFiles
(t *testing.T)
internal/scan/coverage_test.go:652
FunctionTestRun_PlanThreshold
(t *testing.T)
internal/scan/coverage_test.go:735
FunctionTestRun_PromptOverflowRecordsFailure
(t *testing.T)
internal/scan/prompt_budget_test.go:21
FunctionTestRun_TokenBudgetStopSurfacesAsBudgetExceeded
TestRun_TokenBudgetStopSurfacesAsBudgetExceeded pins the gap the dispatch look-ahead cannot close: a single scan item admitted while usage is still lo
internal/scan/prompt_budget_test.go:176
FunctionTestRuneWrapCut
(t *testing.T)
cmd/opencodereview/output_helpers_test.go:111
FunctionTestRunnerAllowsBriefInheritedOutputWait
(t *testing.T)
acp/internal/orchestrator/process_group_test.go:92
FunctionTestRunnerBoundsOutputAndStderrTail
(t *testing.T)
acp/internal/orchestrator/runner_test.go:164
FunctionTestRunnerCancellationReapsProcessGroupChild
(t *testing.T)
acp/internal/orchestrator/process_group_test.go:131
FunctionTestRunnerChannelsCloseAfterSingleOutcome
(t *testing.T)
acp/internal/orchestrator/runner_test.go:195
FunctionTestRunnerCompletesAndKeepsStderrSeparate
(t *testing.T)
acp/internal/orchestrator/runner_test.go:19
FunctionTestRunnerConsumesPhaseThreeMockOCR
(t *testing.T)
acp/internal/orchestrator/runner_test.go:37
FunctionTestRunnerContextDeadlineOverridesExit
(t *testing.T)
acp/internal/orchestrator/runner_test.go:146
FunctionTestRunnerDeadlineOverridesExit
(t *testing.T)
acp/internal/orchestrator/runner_test.go:136
FunctionTestRunnerReclaimsDescendantsAfterLeaderExit
(t *testing.T)
acp/internal/orchestrator/process_group_test.go:20
FunctionTestRunnerRejectsInvalidAndMultipleJSON
(t *testing.T)
acp/internal/orchestrator/runner_test.go:71
FunctionTestRunnerRejectsInvalidCWDAndArgs
(t *testing.T)
acp/internal/orchestrator/runner_test.go:209
FunctionTestRunnerRejectsNonZeroExitEvenWithJSON
(t *testing.T)
acp/internal/orchestrator/runner_test.go:62
FunctionTestRunnerRetainsTruncationWarningWithoutEventConsumer
(t *testing.T)
acp/internal/orchestrator/runner_test.go:180
FunctionTestRunnerScanResult
(t *testing.T)
acp/internal/orchestrator/runner_test.go:156
FunctionTestRunner_AcquireTimeout
(t *testing.T)
internal/gitcmd/runner_test.go:143
FunctionTestRunner_CancelledCallReleasesSemaphore
The semaphore must be released even when the pipe wait is cut short, otherwise one cancelled call starves every later caller.
internal/gitcmd/runner_pipe_test.go:102
FunctionTestRunner_CancelledWithSeparatePipesRepeated
Cancellation with separate stdout/stderr orphans, repeated: the grace callback and the deferred pipe teardown must not race. Run under -race.
internal/gitcmd/runner_pipe_test.go:263
FunctionTestRunner_ContextCancelled
(t *testing.T)
internal/gitcmd/runner_test.go:132
FunctionTestRunner_New
(t *testing.T)
internal/gitcmd/runner_test.go:45
FunctionTestRunner_Output
(t *testing.T)
internal/gitcmd/runner_test.go:83
FunctionTestRunner_OutputFailedCommandBoundsStderr
A failing command with a huge stderr stream must surface bounded stderr on the ExitError, matching the old exec.Cmd.Output retention policy.
internal/gitcmd/runner_pipe_test.go:224
FunctionTestRunner_RecordUsage
(t *testing.T)
internal/reviewtask/loop_test.go:458
FunctionTestRunner_RecordWarning
(t *testing.T)
internal/reviewtask/loop_test.go:439
FunctionTestRunner_Run
(t *testing.T)
internal/gitcmd/runner_test.go:60
FunctionTestRunner_RunCancelledWithOrphanHoldingStdout
A cancelled Run must also return early when a descendant holds the pipe.
internal/gitcmd/runner_pipe_test.go:76
FunctionTestRunner_RunSplit
(t *testing.T)
internal/gitcmd/runner_test.go:97
FunctionTestRunner_RunSplitKeepsFullStderr
RunSplit keeps the full stderr stream: callers there want the whole diagnostic, not just the head and tail.
internal/gitcmd/runner_pipe_test.go:247
FunctionTestRunner_RunSplitReportsStderr
RunSplit must still expose stderr on the returned error path.
internal/gitcmd/runner_pipe_test.go:169
FunctionTestRunner_Run_InvalidCommand
(t *testing.T)
internal/gitcmd/runner_test.go:73
FunctionTestRunner_Stream
(t *testing.T)
internal/gitcmd/runner_test.go:111
FunctionTestRunner_StreamCancelledWithOrphanHoldingStdout
A cancelled Stream whose descendant retains only stdout must return shortly after its deadline instead of waiting for that descendant (#1909, probe A)
internal/gitcmd/runner_pipe_test.go:46
FunctionTestRunner_StreamFailureIncludesStderr
The Stream contract (consume drains stdout) must keep working, including the stderr text attached to a failing command. `git show` is used instead of
internal/gitcmd/runner_pipe_test.go:153
FunctionTestRunner_SuccessWithLateDescendantOutput
A successful command whose descendant flushes late must still succeed with complete output. This is the success-path regression that exec.Cmd.WaitDela
internal/gitcmd/runner_pipe_test.go:128
FunctionTestRunner_Warnings_RoundTrip
(t *testing.T)
internal/scan/agent_test.go:378
FunctionTestRuntimeConfigSHA256
(t *testing.T)
internal/agent/manifest_hash_test.go:153
FunctionTestSameRepoPath_OneDirectorySpelledTwoWays
(t *testing.T)
internal/session/delete_test.go:203
FunctionTestSanitizeEndpointHost
(t *testing.T)
cmd/opencodereview/misc_helpers_test.go:33
FunctionTestSanitizeMarkdownCollapsesNewlines
(t *testing.T)
cmd/opencodereview/background_file_test.go:143
FunctionTestSanitizeMarkdownNormalizesCRLF
(t *testing.T)
cmd/opencodereview/background_file_test.go:151
FunctionTestSanitizeMarkdownPreservesNewlinesAndTabs
(t *testing.T)
cmd/opencodereview/background_file_test.go:135
FunctionTestSanitizeMarkdownTrims
(t *testing.T)
cmd/opencodereview/background_file_test.go:159
FunctionTestSanitizeReasonControlByteInTokenDoesNotLeakTail
A control byte embedded inside a secret must not let the tail of the token survive: UTF-8 coercion + control-char stripping run before the redaction r
internal/session/manifest_test.go:779
FunctionTestSanitizeReasonQuotedValue
A quoted secret value with spaces must be fully redacted (no partial leak).
internal/session/manifest_test.go:790
FunctionTestSanitizeReasonStripsControlChars
sanitizeReason strips control chars, ANSI escapes and Unicode line separators, and coerces invalid UTF-8 — so nothing survives to inject into a termin
internal/session/manifest_test.go:756
FunctionTestSanitizeReasonStripsSecrets
sanitizeReason must strip high-confidence secret shapes and never let the secret substring survive into the stored reason.
internal/session/manifest_test.go:668
FunctionTestSanitizeReasonTruncatesAndSingleLine
Reasons are capped to maxReasonLen runes (rune-safe) and collapsed to one line.
internal/session/manifest_test.go:694
FunctionTestSanitizeTerminal
(t *testing.T)
cmd/opencodereview/output_test.go:82
FunctionTestSarifFingerprints_EmptyExistingCodeFallback
When ExistingCode is empty, fingerprint must fall back to StartLine to avoid collisions between same-file, same-category findings.
cmd/opencodereview/sarif_test.go:611
FunctionTestSarifFingerprints_Stable
--- partialFingerprints stability ---
cmd/opencodereview/sarif_test.go:591
FunctionTestSarifInvocation_ExecutionSuccessful
--- invocations: executionSuccessful derived from manifest ---
cmd/opencodereview/sarif_test.go:634
FunctionTestSarifInvocation_NonCompleteAddsManifestNotification
Non-complete manifest states add a manifest notification so consumers can distinguish "clean scan" from "partial/skipped".
cmd/opencodereview/sarif_test.go:707
FunctionTestSarifInvocation_WarningsAsNotifications
--- invocations: warnings become toolExecutionNotifications ---
cmd/opencodereview/sarif_test.go:676
FunctionTestSarifResultFromComment_EmptyPath
--- Helper: sarifResultFromComment edge cases ---
cmd/opencodereview/sarif_test.go:525
FunctionTestSarifResultFromComment_FixesWithEmptyPath
Fixes must be omitted when Path is empty even if SuggestionCode and ExistingCode are non-empty, because fixes reference Path as the artifactLocation U
cmd/opencodereview/sarif_test.go:569
FunctionTestSarifResultFromComment_InvertedLineNumbers
Inverted line range (StartLine > EndLine) must omit region AND fixes (deletedRegion is required, so fixes cannot be emitted without a valid region).
cmd/opencodereview/sarif_test.go:538
FunctionTestSarifResults_DuplicateFingerprints
Duplicate fingerprints (same file + category + ExistingCode) get an occurrence index appended so GitHub tracks them as separate alerts.
cmd/opencodereview/sarif_test.go:729
FunctionTestSarifRules
--- AC-10: Rule definition completeness ---
cmd/opencodereview/sarif_test.go:332
FunctionTestSarifSeverityLevel
--- AC-5 & AC-6: Severity → Level mapping ---
cmd/opencodereview/sarif_test.go:208
FunctionTestSaveConfig
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:43
FunctionTestSaveConfigEnforcesModeOnExistingFile
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:85
FunctionTestSavedSecretFingerprint_TrimsLeadingWhitespace
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:2030
FunctionTestScanAgent_Fingerprints
TestScanAgent_Fingerprints covers initScanFingerprints (map build) and scanItemFingerprint's cached-hit branch versus the fallback compute.
internal/scan/getters_more_test.go:49
FunctionTestScanAgent_ResumeInfo
TestScanAgent_ResumeInfo covers both the nil and non-nil branches, and that the returned pointer is a defensive copy.
internal/scan/getters_more_test.go:32
FunctionTestScanAgent_SessionID_Persistent
TestScanAgent_SessionID_Persistent covers the non-empty return of SessionID: a session with a JSONL writer reports its persisted ID.
internal/scan/getters_more_test.go:15
FunctionTestScanAgent_WaitBackground_NoLeakOnRun
(t *testing.T)
internal/scan/agent_test.go:477
FunctionTestScanBudgetJSON
TestScanBudgetJSON is the end-to-end contract for #771: a real *scan.Agent, real enumeration, real budget gate, through the shared emitRunResult pipel
cmd/opencodereview/scan_budget_json_test.go:51
FunctionTestScanClarificationChainCompletesWithMergedLists
(t *testing.T)
acp/internal/intent/natural_test.go:279
FunctionTestScanGettersOnEmptyAgent
TestScanGettersOnEmptyAgent exercises the small ResultProvider getters that scan implements as zero values or nil-safe guards, so review and scan can
internal/scan/getters_test.go:14
FunctionTestScanItem_AsDiff
(t *testing.T)
internal/model/model_test.go:107
FunctionTestScanItem_AsDiff_Binary
(t *testing.T)
internal/model/model_test.go:144
FunctionTestScanItem_AsDiff_Nil
(t *testing.T)
internal/model/model_test.go:136
FunctionTestScanLines
(t *testing.T)
internal/tool/filereader_test.go:57
FunctionTestScanMaxToolsFlagUsageUsesSubtask
(t *testing.T)
cmd/opencodereview/flags_test.go:427
FunctionTestScanNoFilesEventParentsToIncomingContext
TestScanNoFilesEventParentsToIncomingContext covers the empty-scan path (#1713 review): with nothing reviewable, the event.scan.no.files event must st
internal/scan/trace_parent_test.go:230
FunctionTestScanPathScopeResumeRoundTrip
(t *testing.T)
internal/session/persist_test.go:509
FunctionTestScanRejectsWhitespacePaddedPaths
(t *testing.T)
acp/internal/contract/intent_test.go:392
FunctionTestScanRequestsCarryNoIdentity
TestScanRequestsCarryNoIdentity is the gate that keeps scan out of the retry report. It covers scan's three own request types; the three it reaches th
internal/scan/retry_identity_test.go:79
FunctionTestScanSubtaskSpansDoNotParentToEnumerate
TestScanSubtaskSpansDoNotParentToEnumerate guards the trace hierarchy fix for #1710 on the scan side: after scan.enumerate ends, scan.subtask.* spans
internal/scan/trace_parent_test.go:102
FunctionTestScanSubtaskSpansParentToRunRoot
TestScanSubtaskSpansParentToRunRoot extends the #1710 guard with the affirmative half: under a scan.run root (the span the scan command creates), scan
internal/scan/trace_parent_test.go:164
FunctionTestSealSelectedClosesDenominator
SealSelected closes the denominator: RegisterSelected fails afterwards, while Mark* against the sealed set still works. sealed is distinct from frozen
internal/session/manifest_test.go:440
FunctionTestSealedInputPinsRunToAdmittedCommits
TestSealedInputPinsRunToAdmittedCommits is the guarantee that lets the resume decision live entirely before the run exists. The command resolves the
internal/agent/sealed_input_test.go:61
FunctionTestSecondSignalExitsImmediately
TestSecondSignalExitsImmediately covers the issue #1141 acceptance criterion: after the first SIGINT started the graceful shutdown, a second SIGINT mu
cmd/opencodereview/interrupt_test.go:237
FunctionTestSecondSignalExitsWithBlockedStderr
TestSecondSignalExitsWithBlockedStderr is a regression test for the case where the child's stderr is a full pipe whose reader stopped consuming: the f
cmd/opencodereview/interrupt_test.go:291
FunctionTestSecondTurnPairsEveryToolCall
TestSecondTurnPairsEveryToolCall is the regression test for the review on #1394: the second request replays the whole assistant turn, so every tool ca
cmd/opencodereview/llm_cmd_test.go:185
FunctionTestSecurityHeadersOmitsHSTS
The viewer serves plain HTTP on loopback; HSTS would wrongly pin localhost.
internal/viewer/securityheaders_test.go:38
FunctionTestSecurityHeadersSetsAllHeaders
(t *testing.T)
internal/viewer/securityheaders_test.go:13
← previousnext →5,701–5,800 of 7,169, ranked by callers