MCPcopy Create free account

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

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

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
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:2136
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:1870
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:1906
FunctionTestLoadProjectRule_RejectsSymlinkedRuleFile
TestLoadProjectRule_RejectsSymlinkedRuleFile verifies that a symlinked "rule.json" pointing outside the repo cannot be read.
internal/config/rules/system_rules_test.go:1927
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:2102
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
FunctionTestLoadSession_LLMError
(t *testing.T)
internal/viewer/store_load_test.go:389
FunctionTestLoadSession_LLMErrorWithoutRequest
(t *testing.T)
internal/viewer/store_load_test.go:536
FunctionTestLoadSession_MalformedLines
(t *testing.T)
internal/viewer/store_load_test.go:366
FunctionTestLoadSession_MarkIDStableAndDistinct
(t *testing.T)
internal/viewer/store_load_test.go:756
FunctionTestLoadSession_MarkIDUnicodeFields
(t *testing.T)
internal/viewer/store_load_test.go:801
FunctionTestLoadSession_MissingFile
(t *testing.T)
internal/viewer/store_load_test.go:263
FunctionTestLoadSession_MultipleRequests
(t *testing.T)
internal/viewer/store_load_test.go:459
FunctionTestLoadSession_MultipleTaskTypes
(t *testing.T)
internal/viewer/store_load_test.go:652
FunctionTestLoadSession_ResponseWithoutRequest
(t *testing.T)
internal/viewer/store_load_test.go:512
FunctionTestLoadSession_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
FunctionTestLoadSession_TaskDoneStates
(t *testing.T)
internal/viewer/store_load_test.go:211
FunctionTestLoadSession_ToolCallWithOkFalse
(t *testing.T)
internal/viewer/store_load_test.go:420
FunctionTestLoadSession_ToolCallWithoutRequest
(t *testing.T)
internal/viewer/store_load_test.go:559
FunctionTestLoadSummaryIgnoresUnknownManifestVersion
(t *testing.T)
internal/session/list_test.go:218
FunctionTestLoadSummaryPrefersV1RunManifest
(t *testing.T)
internal/session/list_test.go:157
FunctionTestLoadSummary_FallsBackToSessionEndFilesReviewed
(t *testing.T)
internal/session/list_test.go:127
FunctionTestLoadSummary_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
FunctionTestLoadSummary_MissingFile
(t *testing.T)
internal/session/list_test.go:237
FunctionTestLoadTiktokenBpe_KnownURL
(t *testing.T)
internal/llm/embedded_loader_test.go:61
FunctionTestLoadTiktokenBpe_UnknownURL
(t *testing.T)
internal/llm/embedded_loader_test.go:72
FunctionTestLoadToolDefsFromTaskTemplates
(test *testing.T)
cmd/opencodereview/shared_llmruntime_test.go:390
FunctionTestLogExclusions_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
FunctionTestLogSelection_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
FunctionTestLogicalRequestIDCanonicalEncoding
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
FunctionTestLogicalRequestIDIsDeterministic
(t *testing.T)
internal/llm/retry_meta_test.go:51
FunctionTestLogicalRequestIDSeparatesFields
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
FunctionTestLogicalRequestIDVariesWithRunIDAndRequestNo
(t *testing.T)
internal/llm/retry_meta_test.go:87
FunctionTestLoginAcceptsMatchingStateDenial
(t *testing.T)
internal/chatgptauth/login_recovery_test.go:83
FunctionTestLoginCompletesWhileBrowserOpenerIsRunning
(t *testing.T)
internal/chatgptauth/login_recovery_test.go:51
FunctionTestLoginDrainsCallbackResponse
(t *testing.T)
internal/chatgptauth/login_recovery_test.go:152
FunctionTestLoginIgnoresUnrelatedCallbacks
(t *testing.T)
internal/chatgptauth/login_recovery_test.go:18
FunctionTestLogout
(t *testing.T)
internal/chatgptauth/auth_test.go:331
FunctionTestLogoutRevocationRetriesAndCancellation
(t *testing.T)
internal/chatgptauth/io_test.go:69
FunctionTestLogoutUnconfirmedRevocation
(t *testing.T)
internal/chatgptauth/lifecycle_test.go:326
FunctionTestLooksLikeFilePath_FileExtensions
(t *testing.T)
internal/config/rules/system_rules_test.go:1589
FunctionTestLooksLikeFilePath_InlineContent
── looksLikeFilePath tests ──
internal/config/rules/system_rules_test.go:1568
FunctionTestLooksLikeFilePath_MultiLine
(t *testing.T)
internal/config/rules/system_rules_test.go:1582
FunctionTestLooksLikeFilePath_PathWithoutExtension
(t *testing.T)
internal/config/rules/system_rules_test.go:1618
FunctionTestLooksLikeFilePath_WithSpaces
(t *testing.T)
internal/config/rules/system_rules_test.go:1604
FunctionTestLooksLikeObjC
(t *testing.T)
internal/config/rules/sniffer_test.go:272
FunctionTestLookupDiff
(t *testing.T)
internal/scan/coverage_test.go:89
FunctionTestLookupProvider_AnthropicDetails
(t *testing.T)
internal/llm/providers_test.go:179
FunctionTestLookupProvider_ChatGPTDetails
(t *testing.T)
internal/llm/providers_test.go:35
FunctionTestLookupProvider_DeepSeekFlash
(t *testing.T)
internal/llm/providers_test.go:239
FunctionTestLookupProvider_KnownProviders
(t *testing.T)
internal/llm/providers_test.go:12
FunctionTestLookupProvider_LiteLLMDetails
(t *testing.T)
internal/llm/providers_test.go:357
FunctionTestLookupProvider_MiniMaxDetails
(t *testing.T)
internal/llm/providers_test.go:48
FunctionTestLookupProvider_MistralDetails
(t *testing.T)
internal/llm/providers_test.go:402
FunctionTestLookupProvider_OllamaCloudDetails
(t *testing.T)
internal/llm/providers_test.go:311
FunctionTestLookupProvider_OpenAIDetails
(t *testing.T)
internal/llm/providers_test.go:195
FunctionTestLookupProvider_OpenAIResponsesDetails
(t *testing.T)
internal/llm/providers_test.go:249
FunctionTestLookupProvider_OpenRouterDetails
(t *testing.T)
internal/llm/providers_test.go:223
FunctionTestLookupProvider_PreservesModelOrder
(t *testing.T)
internal/llm/providers_test.go:145
FunctionTestLookupProvider_ReturnsCopyOfModels
(t *testing.T)
internal/llm/providers_test.go:135
FunctionTestLookupProvider_Unknown
(t *testing.T)
internal/llm/providers_test.go:102
FunctionTestLookupProvider_XAIDetails
(t *testing.T)
internal/llm/providers_test.go:437
FunctionTestLoopbackLogin
(t *testing.T)
internal/chatgptauth/lifecycle_test.go:24
FunctionTestLoopbackNoBrowserCancellation
(t *testing.T)
internal/chatgptauth/lifecycle_test.go:388
FunctionTestMain
(m *testing.M)
internal/reviewtask/testmain_test.go:11
FunctionTestMain
(m *testing.M)
internal/session/testmain_test.go:11
FunctionTestMain
(m *testing.M)
internal/mcp/stdio_test.go:29
FunctionTestMain
(m *testing.M)
internal/scan/testmain_test.go:11
FunctionTestMain
(m *testing.M)
internal/llmloop/testmain_test.go:11
← previousnext →4,301–4,400 of 7,169, ranked by callers