MCPcopy Create free account

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

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

FunctionTestProviderTUI_CustomFormRejectsInvalidAuthHeader
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:686
FunctionTestProviderTUI_CustomModelInput_AddsSingleName
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1318
FunctionTestProviderTUI_CustomModelInput_RejectsDuplicate
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1369
FunctionTestProviderTUI_CustomProviderExistsInList
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1037
FunctionTestProviderTUI_CustomTabSelectAddStartsForm
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:597
FunctionTestProviderTUI_CustomTabShowsAddOption
--- Custom tab tests ---
cmd/opencodereview/provider_tui_test.go:581
FunctionTestProviderTUI_CustomTab_DeleteModelSkipsSavedInSessionWhenNoModelDeleted
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1797
FunctionTestProviderTUI_CustomTab_DeleteModelViaDKey
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1810
FunctionTestProviderTUI_CustomTab_DeleteOnCustomModelInputIgnored
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1653
FunctionTestProviderTUI_CustomTab_ModelShowsDeleteHint
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1664
FunctionTestProviderTUI_DeleteActiveCustomProvider
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1245
FunctionTestProviderTUI_DeleteCustomProvider
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1150
FunctionTestProviderTUI_DeleteCustomProviderCancel
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1191
FunctionTestProviderTUI_DeleteEscCancels
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1275
FunctionTestProviderTUI_DeleteModelPreservesActiveModel
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:2632
FunctionTestProviderTUI_DeleteOnAddOptionIgnored
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1224
FunctionTestProviderTUI_EditCustomClearKey_NoMaskedOnStepAPIKey
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:873
FunctionTestProviderTUI_EditCustomProviderSaveRejectsDuplicateRename
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:772
FunctionTestProviderTUI_EscFromAPIKeyGoesBackToModel
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:182
FunctionTestProviderTUI_EscFromModelGoesBackToProvider
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:163
FunctionTestProviderTUI_EscFromProviderCancels
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:201
FunctionTestProviderTUI_EscKeyString
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:214
FunctionTestProviderTUI_ManualFormEscFromURLExitsForm
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:246
FunctionTestProviderTUI_ManualFormEscRefocusesPreviousInput
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:271
FunctionTestProviderTUI_ManualFormEscRestoresOriginalValues
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:327
FunctionTestProviderTUI_ManualFormPassesKToAuthHeaderInput
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1887
FunctionTestProviderTUI_ManualFormPrefilledValues
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:367
FunctionTestProviderTUI_ManualFormPrefilledWhenProviderSet
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:424
FunctionTestProviderTUI_ManualFormPrefillsAuthHeader
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:455
FunctionTestProviderTUI_ManualFormRejectsWhitespaceOnlyToken
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:520
FunctionTestProviderTUI_ManualFormRequiresTokenOnFirstSetup
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:500
FunctionTestProviderTUI_ManualFormSkipsEmptyTokenWhenOriginalExists
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:471
FunctionTestProviderTUI_ManualResult
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:397
FunctionTestProviderTUI_ManualTabEnterStartsForm
--- Manual tab tests ---
cmd/opencodereview/provider_tui_test.go:223
FunctionTestProviderTUI_ManualTokenPasteReplacesMaskedToken
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:2181
FunctionTestProviderTUI_OfficialApiKeyEmptyWithEnvAllowsEnter
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:2363
FunctionTestProviderTUI_OfficialApiKeyEmptyWithoutEnvBlocksEnter
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:2326
FunctionTestProviderTUI_OfficialModelChangeBlockedAtAPIKey_KeepsGlobalModel
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:2563
FunctionTestProviderTUI_OfficialProvidersSortedByDisplayName
--- Official tab tests (updated from original) ---
cmd/opencodereview/provider_tui_test.go:148
FunctionTestProviderTUI_OfficialTab_CustomModelInput_PersistsName
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1415
FunctionTestProviderTUI_OfficialTab_CustomModelInput_RejectsDuplicate
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1472
FunctionTestProviderTUI_OfficialTab_DeleteActiveUserModelClearsCfg
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1752
FunctionTestProviderTUI_OfficialTab_DeleteBuiltInModelIgnored
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1616
FunctionTestProviderTUI_OfficialTab_DeleteModelPreservesActiveModel
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1696
FunctionTestProviderTUI_OfficialTab_DeleteOnCustomModelInputIgnored
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1642
FunctionTestProviderTUI_OfficialTab_DeleteUserAddedModel
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1579
FunctionTestProviderTUI_OfficialTab_DeleteUserAddedModelCancel
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1720
FunctionTestProviderTUI_OfficialTab_RegistryModelNotDeletable
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1627
FunctionTestProviderTUI_OfficialTab_UserAddedModelShowsDeleteHint
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1680
FunctionTestProviderTUI_PersistCustomModelName_SaveFailureRollsBack
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1858
FunctionTestProviderTUI_ReenterEditAfterClearKey_ShowsEmpty
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:926
FunctionTestProviderTUI_ResultUsesSessionModelPickWhenSelectionEmpty
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1867
FunctionTestProviderTUI_SameOfficialProviderModelChange_DefersPersistUntilConfirm
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:2532
FunctionTestProviderTUI_SelectExistingCustomGoesToModel
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1062
FunctionTestProviderTUI_SessionModelPickSurvivesOfficialProviderSwitch
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:540
FunctionTestProviderTUI_TabKeyCycles
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:106
FunctionTestProviderTUI_TabSwitchLeft
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:74
FunctionTestProviderTUI_TabSwitchOnlyOnStepProvider
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:128
FunctionTestProviderTUI_TabSwitchRight
--- Tab switching tests ---
cmd/opencodereview/provider_tui_test.go:48
FunctionTestProviderTUI_ViewAPIKey_EnvSetNoSavedKey
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:2078
FunctionTestProviderTUI_ViewAPIKey_EnvSetWithSavedKey
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:2106
FunctionTestProviderTUI_ViewAPIKey_FreshHidesReplaceHint
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:2039
FunctionTestProviderTUI_ViewAPIKey_MaskedShowsReplaceHintAndLastFour
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1942
FunctionTestProviderTUI_ViewAPIKey_MinLenKeyShowsFingerprint
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:2004
FunctionTestProviderTUI_ViewAPIKey_NoCmdHintWhenUnset
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:3051
FunctionTestProviderTUI_ViewAPIKey_ShortKeyOmitsFingerprint
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:1975
FunctionTestProviderTUI_ViewAPIKey_ShowsAPIKeyCmdHint
A provider configured only by command renders a blank API-key field, so without this hint there is nothing on screen distinguishing "credential alread
cmd/opencodereview/provider_tui_test.go:3020
FunctionTestProviderTUI_ViewAPIKey_ShowsFormError
(t *testing.T)
cmd/opencodereview/provider_tui_test.go:2446
FunctionTestProvider_Enumerate_CaseVariantFileNameIsNotFoldedOnCaseSensitiveFS
TestProvider_Enumerate_CaseVariantFileNameIsNotFoldedOnCaseSensitiveFS is the same rule at file level: `src/KEEP.go` names no file where `src/keep.go`
internal/scan/provider_paths_test.go:348
FunctionTestProvider_Enumerate_CaseVariantSelectorResolvesOnCaseInsensitiveFS
TestProvider_Enumerate_CaseVariantSelectorResolvesOnCaseInsensitiveFS is the Windows/macOS repair: `--path SRC` names `src/` because the filesystem re
internal/scan/provider_paths_test.go:291
FunctionTestProvider_Enumerate_DotSlashPrefixSelectsSubdirectory
TestProvider_Enumerate_DotSlashPrefixSelectsSubdirectory pins the normalization order. filepath.ToSlash has to run before the "./" trim, or a selector
internal/scan/provider_paths_test.go:225
FunctionTestProvider_Enumerate_EmptyCaseVariantDirectoryStaysEmpty
TestProvider_Enumerate_EmptyCaseVariantDirectoryStaysEmpty pins the follow-up from review: `src/docs/` exists as an empty directory while `src/DOCS/`
internal/scan/provider_paths_test.go:368
FunctionTestProvider_Enumerate_ExactSpellingWinsOnCaseSensitiveFS
TestProvider_Enumerate_ExactSpellingWinsOnCaseSensitiveFS pins the rule where case is meaningful: `src` and `SRC` are two paths, the spelled path wins
internal/scan/provider_paths_test.go:320
FunctionTestProvider_Enumerate_FullRepo
(t *testing.T)
internal/scan/provider_test.go:126
FunctionTestProvider_Enumerate_NonGitDirectory
(t *testing.T)
internal/scan/provider_test.go:173
FunctionTestProvider_Enumerate_NonRegularSkip
TestProvider_Enumerate_NonRegularSkip covers the !IsRegular branch: a symlink tracked by git is enumerated but skipped because it is not a regular fil
internal/scan/provider_more_test.go:40
FunctionTestProvider_Enumerate_OversizeSkip
TestProvider_Enumerate_OversizeSkip covers the size-cap branch: a file larger than maxFileSizeBytes is skipped with a warning while smaller files rema
internal/scan/provider_more_test.go:19
FunctionTestProvider_Enumerate_PathFilter
(t *testing.T)
internal/scan/provider_test.go:219
FunctionTestProvider_Enumerate_PreservesWhitespaceInTrackedPaths
TestProvider_Enumerate_PreservesWhitespaceInTrackedPaths covers issue #1493. `git ls-files -z` exists so that a pathname needs no escaping: every byt
internal/scan/provider_paths_test.go:29
FunctionTestProvider_Enumerate_ResolvedAliasSelectsTrackedSpelling
TestProvider_Enumerate_ResolvedAliasSelectsTrackedSpelling covers resolution through a symlink on a case-sensitive filesystem: `src` is a symlink to t
internal/scan/provider_paths_test.go:393
FunctionTestProvider_Enumerate_RespectsContextCancellation
TestProvider_Enumerate_RespectsContextCancellation guards the per-iteration ctx.Err() check that was previously missing.
internal/scan/provider_test.go:201
FunctionTestProvider_Enumerate_RootSelectorScansRepository
TestProvider_Enumerate_RootSelectorScansRepository pins the root selector. `git ls-files` prints repository-relative names such as `main.go`, never `
internal/scan/provider_paths_test.go:186
FunctionTestProvider_Enumerate_RootSelectorWidensANarrowerOne
TestProvider_Enumerate_RootSelectorWidensANarrowerOne pins the union rule: a root selector covers the whole repository, so a subdirectory named beside
internal/scan/provider_paths_test.go:210
FunctionTestProvider_Enumerate_SniffError
TestProvider_Enumerate_SniffError covers the binary-sniff error branch: a file that cannot be opened for sniffing is skipped with a warning.
internal/scan/provider_more_test.go:63
FunctionTestProvider_Enumerate_StderrWarningIsNotParsedAsAPath
TestProvider_Enumerate_StderrWarningIsNotParsedAsAPath covers the second half of the same defect. gitLs took stdout only on its fallback branch and sa
internal/scan/provider_paths_test.go:71
FunctionTestProvider_Enumerate_UnknownPathIsAnError
TestProvider_Enumerate_UnknownPathIsAnError pins the difference between an empty selection and a mistyped selector. `--path` names a path, not a searc
internal/scan/provider_paths_test.go:258
FunctionTestProvider_Enumerate_WindowsBackslashSelector
TestProvider_Enumerate_WindowsBackslashSelector pins the Windows spelling. filepath.ToSlash only rewrites separators on Windows, and a backslash is a
internal/scan/provider_paths_test.go:240
FunctionTestProvider_Execute_Integration
(t *testing.T)
internal/mcp/client_test.go:216
FunctionTestProvider_ResolveSelector_RepositoryBoundary
TestProvider_ResolveSelector_RepositoryBoundary covers selectors that resolve to the repository root or outside it: no tracked entry can match the res
internal/scan/provider_paths_test.go:417
FunctionTestProvider_Tool
(t *testing.T)
internal/mcp/provider_test.go:18
FunctionTestProviders_AllProtocolsCanonical
TestProviders_AllProtocolsCanonical verifies every registry entry uses a canonical protocol constant — no stale "openai" / "anthropic" literals that w
internal/llm/providers_test.go:475
FunctionTestQuiet
(t *testing.T)
internal/stdout/stdout_test.go:20
FunctionTestQuietHandle_IdempotentRestore
(t *testing.T)
cmd/opencodereview/shared_test.go:138
FunctionTestQuietHandle_NilReceiver
(t *testing.T)
cmd/opencodereview/shared_test.go:133
FunctionTestQuoteKotlinString
(t *testing.T)
internal/llm/gen/kotlin_test.go:15
FunctionTestRangeDiffDetectsRename
TestRangeDiffDetectsRename guards against issue #99: when a file is renamed on the target branch, `ocr review --from master --to BRANCH` must recogniz
internal/diff/git_test.go:710
FunctionTestRangeDiffSurvivesExternalDiffTool
TestRangeDiffSurvivesExternalDiffTool covers the ModeRange call site (git diff <base> <to>), which likewise must pass --no-ext-diff so that a user's e
internal/diff/git_test.go:767
FunctionTestRawCaptureDoesNotInflateObserverTiming
TestRawCaptureDoesNotInflateObserverTiming guards the middleware order: raw must sit outside the retry observer, so its full-body read and writer call
internal/llm/raw_test.go:946
FunctionTestRawFileWriter_AppendsAcrossReopen
TestRawFileWriter_AppendsAcrossReopen pins the O_APPEND contract: reopening the same session ID must keep the previous records instead of truncating t
internal/session/raw_writer_test.go:122
FunctionTestRawFileWriter_ConcurrentWrites
(t *testing.T)
internal/session/raw_writer_test.go:163
← previousnext →5,001–5,100 of 7,169, ranked by callers