Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,169 in github.com/alibaba/open-code-review
⨍
Functions
7,169
◇
Types & classes
774
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
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:2136
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:1870
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:1906
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:1927
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:2102
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
Function
TestLoadSession_LLMError
(t *testing.T)
internal/viewer/store_load_test.go:389
Function
TestLoadSession_LLMErrorWithoutRequest
(t *testing.T)
internal/viewer/store_load_test.go:536
Function
TestLoadSession_MalformedLines
(t *testing.T)
internal/viewer/store_load_test.go:366
Function
TestLoadSession_MarkIDStableAndDistinct
(t *testing.T)
internal/viewer/store_load_test.go:756
Function
TestLoadSession_MarkIDUnicodeFields
(t *testing.T)
internal/viewer/store_load_test.go:801
Function
TestLoadSession_MissingFile
(t *testing.T)
internal/viewer/store_load_test.go:263
Function
TestLoadSession_MultipleRequests
(t *testing.T)
internal/viewer/store_load_test.go:459
Function
TestLoadSession_MultipleTaskTypes
(t *testing.T)
internal/viewer/store_load_test.go:652
Function
TestLoadSession_ResponseWithoutRequest
(t *testing.T)
internal/viewer/store_load_test.go:512
Function
TestLoadSession_ReviewComments
TestLoadSession_ReviewComments covers the review_item_done / review_item_reused comment-parsing block: every ReviewComment field, the per-comment path
internal/viewer/store_load_test.go:696
Function
TestLoadSession_TaskDoneStates
(t *testing.T)
internal/viewer/store_load_test.go:211
Function
TestLoadSession_ToolCallWithOkFalse
(t *testing.T)
internal/viewer/store_load_test.go:420
Function
TestLoadSession_ToolCallWithoutRequest
(t *testing.T)
internal/viewer/store_load_test.go:559
Function
TestLoadSummaryIgnoresUnknownManifestVersion
(t *testing.T)
internal/session/list_test.go:218
Function
TestLoadSummaryPrefersV1RunManifest
(t *testing.T)
internal/session/list_test.go:157
Function
TestLoadSummary_FallsBackToSessionEndFilesReviewed
(t *testing.T)
internal/session/list_test.go:127
Function
TestLoadSummary_HomeUnset
TestLoadSummary_HomeUnset covers the SessionFilePath error branch in LoadSummary (and, by extension, LoadDetail) when the home dir cannot resolve.
internal/session/list_more_test.go:42
Function
TestLoadSummary_MissingFile
(t *testing.T)
internal/session/list_test.go:237
Function
TestLoadTiktokenBpe_KnownURL
(t *testing.T)
internal/llm/embedded_loader_test.go:61
Function
TestLoadTiktokenBpe_UnknownURL
(t *testing.T)
internal/llm/embedded_loader_test.go:72
Function
TestLoadToolDefsFromTaskTemplates
(test *testing.T)
cmd/opencodereview/shared_llmruntime_test.go:390
Function
TestLogExclusions_SecretPath
logExclusions switches on the exclusion reason with a `continue` default, so a reason with no case arm is dropped from the log and the filtered count
internal/agent/agent_test.go:354
Function
TestLogSelection_SecretPath
Without its own branch a credential path is reported as "filtered by path/extension rules", which misstates why it was skipped.
internal/scan/coverage_test.go:143
Function
TestLogicalRequestIDCanonicalEncoding
The encoding is sha256 over version, run_id, provider, model, file_path, task_type and decimal request_no, each followed by a NUL — the trailing field
internal/llm/retry_meta_test.go:121
Function
TestLogicalRequestIDIsDeterministic
(t *testing.T)
internal/llm/retry_meta_test.go:51
Function
TestLogicalRequestIDSeparatesFields
TestLogicalRequestIDSeparatesFields is the reason the encoding is canonical: a plain concatenation would give these metas the same digest.
internal/llm/retry_meta_test.go:63
Function
TestLogicalRequestIDVariesWithRunIDAndRequestNo
(t *testing.T)
internal/llm/retry_meta_test.go:87
Function
TestLoginAcceptsMatchingStateDenial
(t *testing.T)
internal/chatgptauth/login_recovery_test.go:83
Function
TestLoginCompletesWhileBrowserOpenerIsRunning
(t *testing.T)
internal/chatgptauth/login_recovery_test.go:51
Function
TestLoginDrainsCallbackResponse
(t *testing.T)
internal/chatgptauth/login_recovery_test.go:152
Function
TestLoginIgnoresUnrelatedCallbacks
(t *testing.T)
internal/chatgptauth/login_recovery_test.go:18
Function
TestLogout
(t *testing.T)
internal/chatgptauth/auth_test.go:331
Function
TestLogoutRevocationRetriesAndCancellation
(t *testing.T)
internal/chatgptauth/io_test.go:69
Function
TestLogoutUnconfirmedRevocation
(t *testing.T)
internal/chatgptauth/lifecycle_test.go:326
Function
TestLooksLikeFilePath_FileExtensions
(t *testing.T)
internal/config/rules/system_rules_test.go:1589
Function
TestLooksLikeFilePath_InlineContent
── looksLikeFilePath tests ──
internal/config/rules/system_rules_test.go:1568
Function
TestLooksLikeFilePath_MultiLine
(t *testing.T)
internal/config/rules/system_rules_test.go:1582
Function
TestLooksLikeFilePath_PathWithoutExtension
(t *testing.T)
internal/config/rules/system_rules_test.go:1618
Function
TestLooksLikeFilePath_WithSpaces
(t *testing.T)
internal/config/rules/system_rules_test.go:1604
Function
TestLooksLikeObjC
(t *testing.T)
internal/config/rules/sniffer_test.go:272
Function
TestLookupDiff
(t *testing.T)
internal/scan/coverage_test.go:89
Function
TestLookupProvider_AnthropicDetails
(t *testing.T)
internal/llm/providers_test.go:179
Function
TestLookupProvider_ChatGPTDetails
(t *testing.T)
internal/llm/providers_test.go:35
Function
TestLookupProvider_DeepSeekFlash
(t *testing.T)
internal/llm/providers_test.go:239
Function
TestLookupProvider_KnownProviders
(t *testing.T)
internal/llm/providers_test.go:12
Function
TestLookupProvider_LiteLLMDetails
(t *testing.T)
internal/llm/providers_test.go:357
Function
TestLookupProvider_MiniMaxDetails
(t *testing.T)
internal/llm/providers_test.go:48
Function
TestLookupProvider_MistralDetails
(t *testing.T)
internal/llm/providers_test.go:402
Function
TestLookupProvider_OllamaCloudDetails
(t *testing.T)
internal/llm/providers_test.go:311
Function
TestLookupProvider_OpenAIDetails
(t *testing.T)
internal/llm/providers_test.go:195
Function
TestLookupProvider_OpenAIResponsesDetails
(t *testing.T)
internal/llm/providers_test.go:249
Function
TestLookupProvider_OpenRouterDetails
(t *testing.T)
internal/llm/providers_test.go:223
Function
TestLookupProvider_PreservesModelOrder
(t *testing.T)
internal/llm/providers_test.go:145
Function
TestLookupProvider_ReturnsCopyOfModels
(t *testing.T)
internal/llm/providers_test.go:135
Function
TestLookupProvider_Unknown
(t *testing.T)
internal/llm/providers_test.go:102
Function
TestLookupProvider_XAIDetails
(t *testing.T)
internal/llm/providers_test.go:437
Function
TestLoopbackLogin
(t *testing.T)
internal/chatgptauth/lifecycle_test.go:24
Function
TestLoopbackNoBrowserCancellation
(t *testing.T)
internal/chatgptauth/lifecycle_test.go:388
Function
TestMain
(m *testing.M)
internal/reviewtask/testmain_test.go:11
Function
TestMain
(m *testing.M)
internal/session/testmain_test.go:11
Function
TestMain
(m *testing.M)
internal/mcp/stdio_test.go:29
Function
TestMain
(m *testing.M)
internal/scan/testmain_test.go:11
Function
TestMain
(m *testing.M)
internal/llmloop/testmain_test.go:11
← previous
next →
4,301–4,400 of 7,169, ranked by callers