Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,390 in github.com/alibaba/open-code-review
⨍
Functions
7,390
◇
Types & classes
806
Function
TestLanguageKey_ExtensionlessAndDotfiles
(t *testing.T)
internal/scan/batch_test.go:122
Function
TestLargeDeniedInventory
(test *testing.T)
internal/behaviortask/scope_test.go:66
Function
TestLargeInventoryIsPagedBeforeFirstRequest
(test *testing.T)
internal/behaviortask/context_test.go:94
Function
TestLazyFileWriter_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
Function
TestLazyFileWriter_JSONKeepsBytesUnchanged
(t *testing.T)
cmd/opencodereview/output_file_test.go:542
Function
TestLazyFileWriter_NewFileUsesCreatePermissions
(t *testing.T)
cmd/opencodereview/output_file_test.go:358
Function
TestLazyFileWriter_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
Function
TestLazyFileWriter_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
Function
TestLazyFileWriter_PreservesSymlinkTarget
(t *testing.T)
cmd/opencodereview/output_file_test.go:468
Function
TestLazyFileWriter_RenameFailureLeavesTargetAndCleansTemp
(t *testing.T)
cmd/opencodereview/output_file_test.go:397
Function
TestLazyFileWriter_ReplacesExistingFileOnlyOnClose
(t *testing.T)
cmd/opencodereview/output_file_test.go:304
Function
TestLazyFileWriter_TextStripsAnsi
(t *testing.T)
cmd/opencodereview/output_file_test.go:518
Function
TestLazyFileWriter_WriteCommitsFileAndPrintsHintOnClose
(t *testing.T)
cmd/opencodereview/output_file_test.go:259
Function
TestLazyFileWriter_WriteFailureLeavesExistingFileUntouched
(t *testing.T)
cmd/opencodereview/output_file_test.go:431
Function
TestLegacyLLMShadowWarning
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1372
Function
TestLegacyToolsCannotCompleteBehavior
(test *testing.T)
internal/behaviortask/runner_test.go:267
Function
TestLevenshtein
(t *testing.T)
cmd/opencodereview/flag_suggest_test.go:14
Function
TestLimitErrorBodyForLog_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
Function
TestLimitedAndTailBuffers
(t *testing.T)
acp/internal/orchestrator/internal_test.go:165
Function
TestListAllTools_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
Function
TestListCursorPrefix_Active
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:175
Function
TestListCursorPrefix_Inactive
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:182
Function
TestListProviders_Order
(t *testing.T)
internal/llm/providers_test.go:109
Function
TestListProviders_ReturnsCopy
(t *testing.T)
internal/llm/providers_test.go:125
Function
TestListProviders_ReturnsSortedProviders
(t *testing.T)
internal/llm/providers_test.go:168
Function
TestListSessions
(t *testing.T)
internal/viewer/store_test.go:255
Function
TestListSessions_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
Function
TestListSessions_MissingDirReturnsEmptySlice
(t *testing.T)
internal/session/list_test.go:15
Function
TestListSessions_SkipsUnreadableFiles
(t *testing.T)
internal/viewer/store_load_test.go:613
Function
TestListSessions_SortsAndAggregates
(t *testing.T)
internal/session/list_test.go:37
Function
TestLiteralPathBatches
(test *testing.T)
internal/behaviortask/scope_test.go:108
Function
TestLlmComment_JSON
(t *testing.T)
internal/model/model_test.go:155
Function
TestLlmComment_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
Function
TestLoadAppConfig_InvalidJSON
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1595
Function
TestLoadAppConfig_NotExist
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1585
Function
TestLoadBackgroundFileControlCharRemoval
(t *testing.T)
cmd/opencodereview/background_file_test.go:117
Function
TestLoadBackgroundFileDelimiters
(t *testing.T)
cmd/opencodereview/background_file_test.go:166
Function
TestLoadBackgroundFileDirectory
(t *testing.T)
cmd/opencodereview/background_file_test.go:252
Function
TestLoadBackgroundFileEmpty
(t *testing.T)
cmd/opencodereview/background_file_test.go:98
Function
TestLoadBackgroundFileHardLimit
(t *testing.T)
cmd/opencodereview/background_file_test.go:258
Function
TestLoadBackgroundFileHardLimitExcludesWrapper
(t *testing.T)
cmd/opencodereview/background_file_test.go:269
Function
TestLoadBackgroundFileMultiByteRuneCount
(t *testing.T)
cmd/opencodereview/background_file_test.go:278
Function
TestLoadBackgroundFileNotFound
(t *testing.T)
cmd/opencodereview/background_file_test.go:25
Function
TestLoadBackgroundFileOversized
(t *testing.T)
cmd/opencodereview/background_file_test.go:239
Function
TestLoadBackgroundFileRejectsReservedDelimiters
(t *testing.T)
cmd/opencodereview/background_file_test.go:183
Function
TestLoadBackgroundFileRelativeToRepo
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
Function
TestLoadBackgroundFileSoftLimit
(t *testing.T)
cmd/opencodereview/background_file_test.go:227
Function
TestLoadComments_LaterCheckpointSupersedes
(t *testing.T)
internal/session/comments_test.go:46
Function
TestLoadComments_MissingSession
(t *testing.T)
internal/session/comments_test.go:76
Function
TestLoadComments_ReturnsCommentsInOrder
(t *testing.T)
internal/session/comments_test.go:12
Function
TestLoadDefault
(t *testing.T)
internal/config/toolsconfig/toolsconfig_test.go:13
Function
TestLoadDefault
(t *testing.T)
internal/config/testconnection/testconnection_test.go:10
Function
TestLoadDefaultIndependentCopies
(t *testing.T)
internal/config/toolsconfig/toolsconfig_test.go:100
Function
TestLoadDefaultInvalidJSON
(t *testing.T)
internal/config/toolsconfig/toolsconfig_test.go:90
Function
TestLoadDefault_FieldsPopulated
(t *testing.T)
internal/config/template/template_test.go:217
Function
TestLoadDefault_HasNoScanFields
(t *testing.T)
internal/config/template/template_test.go:135
Function
TestLoadDefault_PlaceholdersPresent
(t *testing.T)
internal/config/template/template_test.go:266
Function
TestLoadDefault_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
Function
TestLoadDelegateContext_BackgroundFile
(t *testing.T)
cmd/opencodereview/delegate_exec_test.go:247
Function
TestLoadDelegateContext_NotGitRepo
(t *testing.T)
cmd/opencodereview/delegate_exec_test.go:265
Function
TestLoadDetail_ReturnsItems
(t *testing.T)
internal/session/list_test.go:82
Function
TestLoadExistingAPIKey_CustomTab_HasKey
--- loadExistingAPIKey tests ---
cmd/opencodereview/provider_tui_funcs_test.go:1610
Function
TestLoadExistingAPIKey_CustomTab_NoKey
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1628
Function
TestLoadExistingAPIKey_OfficialTab_HasKey
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1651
Function
TestLoadExistingAPIKey_OfficialTab_NilCfg
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1643
Function
TestLoadFromJSON
(t *testing.T)
internal/telemetry/config_test.go:122
Function
TestLoadGitignoreAtRef
(t *testing.T)
internal/diff/gitignore_test.go:89
Function
TestLoadGitignorePatterns
(t *testing.T)
internal/diff/gitignore_test.go:61
Function
TestLoadGlobalRule
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
Function
TestLoadLLMRuntime_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
Function
TestLoadLLMRuntime_RawHolderFollowsSwitch
(t *testing.T)
cmd/opencodereview/shared_raw_test.go:15
Function
TestLoadLLMRuntime_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
Function
TestLoadLLMRuntime_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
Function
TestLoadOrCreateConfig_InvalidJSON
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1573
Function
TestLoadOrCreateConfig_NewFile
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1563
Function
TestLoadProjectRule_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
Function
TestLoadProjectRule_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
Function
TestLoadProjectRule_RejectsSymlinkedRuleFile
TestLoadProjectRule_RejectsSymlinkedRuleFile verifies that a symlinked "rule.json" pointing outside the repo cannot be read.
internal/config/rules/system_rules_test.go:2022
Function
TestLoadResumeState_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
Function
TestLoadResumeState_EmptyFile
(t *testing.T)
internal/session/resume_test.go:492
Function
TestLoadResumeState_FailThenRedone
(t *testing.T)
internal/session/resume_test.go:697
Function
TestLoadResumeState_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
Function
TestLoadResumeState_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
Function
TestLoadResumeState_MalformedTerminatedFinalRecord_Fails
(t *testing.T)
internal/session/resume_test.go:819
Function
TestLoadResumeState_MultipleRecords
(t *testing.T)
internal/session/resume_test.go:518
Function
TestLoadResumeState_NonexistentFile
--- LoadResumeState ---
internal/session/resume_test.go:482
Function
TestLoadResumeState_TruncatedFinalRecord_Ignored
(t *testing.T)
internal/session/resume_test.go:742
Function
TestLoadResumeState_TruncatedOnlyRecord_Ignored
(t *testing.T)
internal/session/resume_test.go:785
Function
TestLoadReviewResumeState
(t *testing.T)
cmd/opencodereview/review_helpers_test.go:273
Function
TestLoadReviewResumeState_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
Function
TestLoadReviewResumeState_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
Function
TestLoadRuleFile
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
Function
TestLoadScanDefault_BudgetParsed
(t *testing.T)
internal/config/template/template_test.go:89
Function
TestLoadScanDefault_PlanThreshold
(t *testing.T)
internal/config/template/template_test.go:105
Function
TestLoadScanDefault_Validate
(t *testing.T)
internal/config/template/template_test.go:419
Function
TestLoadScanResumeState
(t *testing.T)
cmd/opencodereview/scan_helpers_test.go:17
Function
TestLoadScanResumeState_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
Function
TestLoadSessionReadsV1Manifest
(t *testing.T)
internal/viewer/store_load_test.go:276
Function
TestLoadSession_EmptyFile
(t *testing.T)
internal/viewer/store_load_test.go:495
Function
TestLoadSession_FullParse
(t *testing.T)
internal/viewer/store_load_test.go:64
← previous
next →
4,401–4,500 of 7,390, ranked by callers