MCPcopy Create free account

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

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

FunctionTestLanguageKey_ExtensionlessAndDotfiles
(t *testing.T)
internal/scan/batch_test.go:122
FunctionTestLargeDeniedInventory
(test *testing.T)
internal/behaviortask/scope_test.go:66
FunctionTestLargeInventoryIsPagedBeforeFirstRequest
(test *testing.T)
internal/behaviortask/context_test.go:94
FunctionTestLazyFileWriter_ErrOnCreateFailure
--- deferred write-error propagation --- TestLazyFileWriter_ErrOnCreateFailure pins that a failed lazy create is reported through Err() so text-mode c
cmd/opencodereview/output_file_test.go:569
FunctionTestLazyFileWriter_JSONKeepsBytesUnchanged
(t *testing.T)
cmd/opencodereview/output_file_test.go:542
FunctionTestLazyFileWriter_NewFileUsesCreatePermissions
(t *testing.T)
cmd/opencodereview/output_file_test.go:358
FunctionTestLazyFileWriter_NoWriteDoesNotCreateFile
TestLazyFileWriter_NoWriteDoesNotCreateFile verifies a never-written lazy writer leaves no empty file behind (no phantom file on failure paths).
cmd/opencodereview/output_file_test.go:245
FunctionTestLazyFileWriter_NoWriteLeavesExistingFileUntouched
TestLazyFileWriter_NoWriteLeavesExistingFileUntouched pins the core data-safety contract: a writer that is resolved but never written to (a failed run
cmd/opencodereview/output_file_test.go:221
FunctionTestLazyFileWriter_PreservesSymlinkTarget
(t *testing.T)
cmd/opencodereview/output_file_test.go:468
FunctionTestLazyFileWriter_RenameFailureLeavesTargetAndCleansTemp
(t *testing.T)
cmd/opencodereview/output_file_test.go:397
FunctionTestLazyFileWriter_ReplacesExistingFileOnlyOnClose
(t *testing.T)
cmd/opencodereview/output_file_test.go:304
FunctionTestLazyFileWriter_TextStripsAnsi
(t *testing.T)
cmd/opencodereview/output_file_test.go:518
FunctionTestLazyFileWriter_WriteCommitsFileAndPrintsHintOnClose
(t *testing.T)
cmd/opencodereview/output_file_test.go:259
FunctionTestLazyFileWriter_WriteFailureLeavesExistingFileUntouched
(t *testing.T)
cmd/opencodereview/output_file_test.go:431
FunctionTestLegacyLLMShadowWarning
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1372
FunctionTestLegacyToolsCannotCompleteBehavior
(test *testing.T)
internal/behaviortask/runner_test.go:267
FunctionTestLevenshtein
(t *testing.T)
cmd/opencodereview/flag_suggest_test.go:14
FunctionTestLimitErrorBodyForLog_DropsRuneSplitByTheCap
TestLimitErrorBodyForLog_DropsRuneSplitByTheCap guards the cut at the 64 KiB display bound: a multi-byte character split by the cap is dropped rather
internal/llm/provider_error_test.go:251
FunctionTestLimitedAndTailBuffers
(t *testing.T)
acp/internal/orchestrator/internal_test.go:165
FunctionTestListAllTools_FollowsPagination
tools/list is paginated, so a server that pages its catalog returns one page plus a nextCursor per call. Reading a single page must not truncate the c
internal/mcp/client_test.go:384
FunctionTestListCursorPrefix_Active
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:175
FunctionTestListCursorPrefix_Inactive
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:182
FunctionTestListProviders_Order
(t *testing.T)
internal/llm/providers_test.go:109
FunctionTestListProviders_ReturnsCopy
(t *testing.T)
internal/llm/providers_test.go:125
FunctionTestListProviders_ReturnsSortedProviders
(t *testing.T)
internal/llm/providers_test.go:168
FunctionTestListSessions
(t *testing.T)
internal/viewer/store_test.go:255
FunctionTestListSessions_DirIsFile
TestListSessions_DirIsFile covers the ReadDir error branch (a non-NotExist error): when the computed sessions dir path is occupied by a regular file,
internal/session/list_error_test.go:16
FunctionTestListSessions_MissingDirReturnsEmptySlice
(t *testing.T)
internal/session/list_test.go:15
FunctionTestListSessions_SkipsUnreadableFiles
(t *testing.T)
internal/viewer/store_load_test.go:613
FunctionTestListSessions_SortsAndAggregates
(t *testing.T)
internal/session/list_test.go:37
FunctionTestLiteralPathBatches
(test *testing.T)
internal/behaviortask/scope_test.go:108
FunctionTestLlmComment_JSON
(t *testing.T)
internal/model/model_test.go:155
FunctionTestLlmComment_JSONCategorySeverity
TestLlmComment_JSONCategorySeverity verifies category and severity serialize as flat siblings alongside content when set, and are omitted entirely whe
internal/tool/code_comment_test.go:257
FunctionTestLoadAppConfig_InvalidJSON
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1595
FunctionTestLoadAppConfig_NotExist
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1585
FunctionTestLoadBackgroundFileControlCharRemoval
(t *testing.T)
cmd/opencodereview/background_file_test.go:117
FunctionTestLoadBackgroundFileDelimiters
(t *testing.T)
cmd/opencodereview/background_file_test.go:166
FunctionTestLoadBackgroundFileDirectory
(t *testing.T)
cmd/opencodereview/background_file_test.go:252
FunctionTestLoadBackgroundFileEmpty
(t *testing.T)
cmd/opencodereview/background_file_test.go:98
FunctionTestLoadBackgroundFileHardLimit
(t *testing.T)
cmd/opencodereview/background_file_test.go:258
FunctionTestLoadBackgroundFileHardLimitExcludesWrapper
(t *testing.T)
cmd/opencodereview/background_file_test.go:269
FunctionTestLoadBackgroundFileMultiByteRuneCount
(t *testing.T)
cmd/opencodereview/background_file_test.go:278
FunctionTestLoadBackgroundFileNotFound
(t *testing.T)
cmd/opencodereview/background_file_test.go:25
FunctionTestLoadBackgroundFileOversized
(t *testing.T)
cmd/opencodereview/background_file_test.go:239
FunctionTestLoadBackgroundFileRejectsReservedDelimiters
(t *testing.T)
cmd/opencodereview/background_file_test.go:183
FunctionTestLoadBackgroundFileRelativeToRepo
TestLoadBackgroundFileRelativeToRepo verifies the end-to-end path: a relative --background-file argument resolves against the repo directory, not the
cmd/opencodereview/background_file_test.go:78
FunctionTestLoadBackgroundFileSoftLimit
(t *testing.T)
cmd/opencodereview/background_file_test.go:227
FunctionTestLoadComments_LaterCheckpointSupersedes
(t *testing.T)
internal/session/comments_test.go:46
FunctionTestLoadComments_MissingSession
(t *testing.T)
internal/session/comments_test.go:76
FunctionTestLoadComments_ReturnsCommentsInOrder
(t *testing.T)
internal/session/comments_test.go:12
FunctionTestLoadDefault
(t *testing.T)
internal/config/toolsconfig/toolsconfig_test.go:13
FunctionTestLoadDefault
(t *testing.T)
internal/config/testconnection/testconnection_test.go:10
FunctionTestLoadDefaultIndependentCopies
(t *testing.T)
internal/config/toolsconfig/toolsconfig_test.go:100
FunctionTestLoadDefaultInvalidJSON
(t *testing.T)
internal/config/toolsconfig/toolsconfig_test.go:90
FunctionTestLoadDefault_FieldsPopulated
(t *testing.T)
internal/config/template/template_test.go:217
FunctionTestLoadDefault_HasNoScanFields
(t *testing.T)
internal/config/template/template_test.go:135
FunctionTestLoadDefault_PlaceholdersPresent
(t *testing.T)
internal/config/template/template_test.go:266
FunctionTestLoadDefault_Tool
TestLoadDefault_Tool guards the tool-call round trip added for #1357: the connectivity test only exercises the request shape that actually breaks if i
internal/config/testconnection/testconnection_test.go:100
FunctionTestLoadDelegateContext_BackgroundFile
(t *testing.T)
cmd/opencodereview/delegate_exec_test.go:247
FunctionTestLoadDelegateContext_NotGitRepo
(t *testing.T)
cmd/opencodereview/delegate_exec_test.go:265
FunctionTestLoadDetail_ReturnsItems
(t *testing.T)
internal/session/list_test.go:82
FunctionTestLoadExistingAPIKey_CustomTab_HasKey
--- loadExistingAPIKey tests ---
cmd/opencodereview/provider_tui_funcs_test.go:1610
FunctionTestLoadExistingAPIKey_CustomTab_NoKey
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1628
FunctionTestLoadExistingAPIKey_OfficialTab_HasKey
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1651
FunctionTestLoadExistingAPIKey_OfficialTab_NilCfg
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1643
FunctionTestLoadFromJSON
(t *testing.T)
internal/telemetry/config_test.go:122
FunctionTestLoadGitignoreAtRef
(t *testing.T)
internal/diff/gitignore_test.go:89
FunctionTestLoadGitignorePatterns
(t *testing.T)
internal/diff/gitignore_test.go:61
FunctionTestLoadGlobalRule
TestLoadGlobalRule covers loadGlobalRule's non-NotExist read error, unmarshal error, and success branches by pointing HOME at a temp dir.
internal/config/rules/system_rules_test.go:2231
FunctionTestLoadLLMRuntime_BadAppConfig
TestLoadLLMRuntime_BadAppConfig covers the LoadAppConfig parse-failure branch by writing an invalid config.json at the default HOME-based path.
cmd/opencodereview/shared_llmruntime_test.go:458
FunctionTestLoadLLMRuntime_RawHolderFollowsSwitch
(t *testing.T)
cmd/opencodereview/shared_raw_test.go:15
FunctionTestLoadLLMRuntime_Success
TestLoadLLMRuntime_Success resolves an endpoint via OCR_LLM_* env vars (no config file on disk, so LoadAppConfig returns nil,nil) and asserts the runt
cmd/opencodereview/shared_llmruntime_test.go:362
FunctionTestLoadLLMRuntime_UnresolvableEndpoint
TestLoadLLMRuntime_UnresolvableEndpoint covers the ResolveEndpointWithOptions failure branch: no config file and no env vars means no endpoint resolve
cmd/opencodereview/shared_llmruntime_test.go:439
FunctionTestLoadOrCreateConfig_InvalidJSON
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1573
FunctionTestLoadOrCreateConfig_NewFile
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1563
FunctionTestLoadProjectRule_ConfinesUntrustedReferences
TestLoadProjectRule_ConfinesUntrustedReferences exercises the real entry point: a malicious .opencodereview/rule.json referencing an absolute path out
internal/config/rules/system_rules_test.go:1965
FunctionTestLoadProjectRule_RejectsSymlinkedDir
TestLoadProjectRule_RejectsSymlinkedDir verifies that an attacker-committed ".opencodereview" directory symlink pointing outside the repo cannot make
internal/config/rules/system_rules_test.go:2001
FunctionTestLoadProjectRule_RejectsSymlinkedRuleFile
TestLoadProjectRule_RejectsSymlinkedRuleFile verifies that a symlinked "rule.json" pointing outside the repo cannot be read.
internal/config/rules/system_rules_test.go:2022
FunctionTestLoadResumeState_CorruptLineIsFatal
TestLoadResumeState_CorruptLineIsFatal pins the strict entry point, which scan resume uses. Scan has no manifest to arbitrate coverage, so an unreadab
internal/session/resume_test.go:645
FunctionTestLoadResumeState_EmptyFile
(t *testing.T)
internal/session/resume_test.go:492
FunctionTestLoadResumeState_FailThenRedone
(t *testing.T)
internal/session/resume_test.go:697
FunctionTestLoadResumeState_IgnoresOrphanLLMRequest
TestLoadResumeState_IgnoresOrphanLLMRequest is the regression guard for that reordering: resume must treat a request with no response as absent, neith
internal/session/resume_orphan_request_test.go:23
FunctionTestLoadResumeState_IntactSessionStillReusable
TestLoadResumeState_IntactSessionStillReusable guards the scan path against the regression this split exists to prevent: an undamaged session must kee
internal/session/resume_test.go:671
FunctionTestLoadResumeState_MalformedTerminatedFinalRecord_Fails
(t *testing.T)
internal/session/resume_test.go:819
FunctionTestLoadResumeState_MultipleRecords
(t *testing.T)
internal/session/resume_test.go:518
FunctionTestLoadResumeState_NonexistentFile
--- LoadResumeState ---
internal/session/resume_test.go:482
FunctionTestLoadResumeState_TruncatedFinalRecord_Ignored
(t *testing.T)
internal/session/resume_test.go:742
FunctionTestLoadResumeState_TruncatedOnlyRecord_Ignored
(t *testing.T)
internal/session/resume_test.go:785
FunctionTestLoadReviewResumeState
(t *testing.T)
cmd/opencodereview/review_helpers_test.go:273
FunctionTestLoadReviewResumeState_CorruptLineDoesNotAbortLoad
TestLoadReviewResumeState_CorruptLineDoesNotAbortLoad pins the cost of one unreadable line in a review session: the file it described is reviewed agai
internal/session/resume_test.go:596
FunctionTestLoadReviewResumeState_WithSession
TestLoadReviewResumeState_WithSession drives the fixture-backed branches of loadReviewResumeState: a successful resume, a review-mode mismatch, and a
cmd/opencodereview/review_resume_more_test.go:43
FunctionTestLoadRuleFile
TestLoadRuleFile covers loadRuleFile's read-error and unmarshal-error branches plus the success path that resolves entries and returns the rule.
internal/config/rules/system_rules_test.go:2197
FunctionTestLoadScanDefault_BudgetParsed
(t *testing.T)
internal/config/template/template_test.go:89
FunctionTestLoadScanDefault_PlanThreshold
(t *testing.T)
internal/config/template/template_test.go:105
FunctionTestLoadScanDefault_Validate
(t *testing.T)
internal/config/template/template_test.go:419
FunctionTestLoadScanResumeState
(t *testing.T)
cmd/opencodereview/scan_helpers_test.go:17
FunctionTestLoadScanResumeState_WithSession
TestLoadScanResumeState_WithSession drives the fixture-backed branches of loadScanResumeState: a successful resume, a scan-mode mismatch, and a sessio
cmd/opencodereview/scan_resume_more_test.go:32
FunctionTestLoadSessionReadsV1Manifest
(t *testing.T)
internal/viewer/store_load_test.go:276
FunctionTestLoadSession_EmptyFile
(t *testing.T)
internal/viewer/store_load_test.go:495
FunctionTestLoadSession_FullParse
(t *testing.T)
internal/viewer/store_load_test.go:64
← previousnext →4,401–4,500 of 7,390, ranked by callers