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
TestMapResponsesResponse_TextOnly
--- mapResponsesResponse tests ---
internal/llm/responses_client_test.go:365
Function
TestMapResponsesResponse_Usage
(t *testing.T)
internal/llm/responses_client_test.go:502
Function
TestMarkFailedEnforcesRedaction
The redaction floor is enforced through the builder, not just the helper: a secret passed via MarkFailed must not reach the manifest.
internal/session/manifest_test.go:712
Function
TestMarkUnknownItemErrors
Marking an item that was never selected returns an error (not a silent no-op).
internal/session/manifest_test.go:398
Function
TestMarkdownDeliveryFailureKeepsAcceptedReport
(test *testing.T)
internal/behaviortask/markdown_test.go:90
Function
TestMarkdownOnlySubmissionAndArtifacts
(test *testing.T)
internal/behaviortask/markdown_test.go:54
Function
TestMarkdownOutputDestinations
(test *testing.T)
cmd/opencodereview/markdown_test.go:368
Function
TestMarkdownSchemaRejectsLegacyAndBadTypes
(test *testing.T)
internal/behaviortask/markdown_test.go:78
Function
TestMarkdownValidation
(test *testing.T)
internal/behaviortask/markdown_test.go:18
Function
TestMaskKey
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:22
Function
TestMatchConsecutive_EmptySideLines
(t *testing.T)
internal/diff/resolver_test.go:513
Function
TestMatchConsecutive_ExactFull
(t *testing.T)
internal/diff/resolver_test.go:536
Function
TestMatchConsecutive_FirstMatchWins
(t *testing.T)
internal/diff/resolver_test.go:497
Function
TestMatchConsecutive_MatchAtEnd
(t *testing.T)
internal/diff/resolver_test.go:520
Function
TestMatchConsecutive_MatchAtStart
(t *testing.T)
internal/diff/resolver_test.go:528
Function
TestMatchConsecutive_MultiLine
(t *testing.T)
internal/diff/resolver_test.go:481
Function
TestMatchConsecutive_NoMatch
(t *testing.T)
internal/diff/resolver_test.go:489
Function
TestMatchConsecutive_SingleLine
--------------------------------------------------------------------------- matchConsecutive unit tests ----------------------------------------------
internal/diff/resolver_test.go:473
Function
TestMatchConsecutive_TargetLongerThanLines
(t *testing.T)
internal/diff/resolver_test.go:505
Function
TestMatchFileNamesAuthorizesOnlyCandidates
(t *testing.T)
internal/tool/file_find_test.go:18
Function
TestMatchGitignorePattern
(t *testing.T)
internal/diff/gitignore_test.go:251
Function
TestMaxTokensConfigRoundTrip
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:103
Function
TestMaybeRunDedup_SkipWhenDisabled
(t *testing.T)
internal/scan/coverage_test.go:487
Function
TestMaybeRunDedup_SkipWhenTooFewComments
(t *testing.T)
internal/scan/coverage_test.go:502
Function
TestMaybeRunDedup_Success
(t *testing.T)
internal/scan/coverage_test.go:440
Function
TestMaybeRunPlan_SkipPathsDoNotCallLLM
(t *testing.T)
internal/scan/agent_test.go:188
Function
TestMaybeRunPlan_Success
(t *testing.T)
internal/scan/coverage_test.go:329
Function
TestMaybeRunProjectSummary_SkipWhenDisabled
(t *testing.T)
internal/scan/coverage_test.go:410
Function
TestMaybeRunProjectSummary_SkipWhenNoComments
(t *testing.T)
internal/scan/coverage_test.go:418
Function
TestMaybeRunProjectSummary_Success
(t *testing.T)
internal/scan/coverage_test.go:371
Function
TestMergeModelLists
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:797
Function
TestMessage_EstimatedTokens
(t *testing.T)
internal/llm/client_test.go:2303
Function
TestMiniMaxModelSelectionAndRequest
(t *testing.T)
cmd/opencodereview/provider_minimax_test.go:20
Function
TestMiniMaxSuggestedModels
(t *testing.T)
internal/llm/providers_test.go:83
Function
TestMockCancelReportsCancelledManifest
TestMockCancelReportsCancelledManifest drives the cancellation path: wait for the READY marker on stderr, send SIGINT, then check the real cancellatio
acp/internal/contract/mock_contract_test.go:242
Function
TestMockDefaultScenarioSucceeds
TestMockDefaultScenarioSucceeds pins the default -scenario value: running the binary bare is how a developer first tries it, so it must not error.
acp/internal/contract/mock_contract_test.go:198
Function
TestMockEmptyCommentsEmitsArray
(t *testing.T)
acp/internal/contract/mock_contract_test.go:147
Function
TestMockInvalidJSONDoesNotDecode
TestMockInvalidJSONDoesNotDecode confirms the malformed-output scenario actually produces output the adapter must reject.
acp/internal/contract/mock_contract_test.go:226
Function
TestMockNonZeroExitStillDecodes
TestMockNonZeroExitStillDecodes documents that a failed run reports its status through the JSON document, not only through the exit code.
acp/internal/contract/mock_contract_test.go:210
Function
TestMockPartialCarriesCoverageFailure
(t *testing.T)
acp/internal/contract/mock_contract_test.go:130
Function
TestMockScanScenarioMatchesContract
(t *testing.T)
acp/internal/contract/mock_contract_test.go:172
Function
TestMockStderrPollutionDoesNotLeak
(t *testing.T)
acp/internal/contract/mock_contract_test.go:161
Function
TestMockSuccessReviewDecodesEveryField
(t *testing.T)
acp/internal/contract/mock_contract_test.go:86
Function
TestModeWarning
(t *testing.T)
internal/viewer/compare_test.go:130
Function
TestModelCount
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:158
Function
TestModelListContains
(t *testing.T)
internal/llm/message_test.go:369
Function
TestModelOverrideWarnsForKeyBasedProviders
(t *testing.T)
internal/llm/bedrock_test.go:343
Function
TestModelProviderName_CustomTab
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:133
Function
TestModelProviderName_CustomTab_NoSelection
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:148
Function
TestModelProviderName_OfficialTab
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:121
Function
TestModelReloadConfigAfterSaveFailure
(t *testing.T)
cmd/opencodereview/provider_tui_rollback_test.go:130
Function
TestModelTUIUpdate_CancelAndDelete
TestModelTUIUpdate_CancelAndDelete covers esc/ctrl+c cancel and the 'd' key entering delete-confirm on a user-added model.
cmd/opencodereview/provider_tui_modeltui_test.go:74
Function
TestModelTUIUpdate_CustomModelInput
TestModelTUIUpdate_CustomModelInput covers the customModel input sub-mode: esc exit, empty enter stays, duplicate enter sets formError, valid enter pe
cmd/opencodereview/provider_tui_modeltui_test.go:96
Function
TestModelTUIUpdate_Navigation
TestModelTUIUpdate_Navigation covers window resize, up/down wrap-around, and enter on both a real model and the custom "add" item.
cmd/opencodereview/provider_tui_modeltui_test.go:36
Function
TestModelTUI_AddCustomModelRejectsDuplicate
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1240
Function
TestModelTUI_CustomProvider_AddCustomModelStaysOnList
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1193
Function
TestModelTUI_CustomProvider_DeleteCancel
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1423
Function
TestModelTUI_CustomProvider_DeleteClearsCustomInput
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1382
Function
TestModelTUI_CustomProvider_DeleteModelViaDKey
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1403
Function
TestModelTUI_CustomProvider_DeleteOnCustomModelInputIgnored
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1339
Function
TestModelTUI_CustomProvider_ShowsDeleteHint
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1366
Function
TestModelTUI_DeleteSetsSavedInSession
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1225
Function
TestModelTUI_EscCancelWithoutChangesNoSavedInSession
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1213
Function
TestModelTUI_IsCustomItem
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:776
Function
TestModelTUI_ItemCount
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:790
Function
TestModelTUI_Official_AddCustomModelStaysOnList
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1151
Function
TestModelTUI_Official_DeleteActiveUserModelClearsCfg
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1472
Function
TestModelTUI_Official_DeleteBuiltInModelIgnored
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1284
Function
TestModelTUI_Official_DeleteCancel
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1440
Function
TestModelTUI_Official_DeleteOnCustomModelInputIgnored
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1328
Function
TestModelTUI_Official_DeleteUserAddedModel
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1256
Function
TestModelTUI_Official_ListEnterConfirmsSelection
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1179
Function
TestModelTUI_Official_RegistryModelNotDeletable
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1313
Function
TestModelTUI_Official_UserAddedModelShowsDeleteHint
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1350
Function
TestModelTUI_SelectedModel
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:801
Function
TestModelTUI_SelectedModel_OutOfBounds
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:813
Function
TestModelTUI_ShowsEffectiveBaseURL
TestModelTUI_ShowsEffectiveBaseURL verifies that the model picker displays the effective Base URL when a configured override is set on the provider.
cmd/opencodereview/provider_tui_funcs_test.go:2215
Function
TestModelTUI_ShowsPresetBaseURLWhenNoOverride
TestModelTUI_ShowsPresetBaseURLWhenNoOverride verifies that the model picker shows the preset Base URL when no override is configured.
cmd/opencodereview/provider_tui_funcs_test.go:2228
Function
TestModelTUI_Update_EscCancels
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:857
Function
TestModelTUI_Update_UpDown
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:826
Function
TestModelTUI_Update_WindowSize
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:844
Function
TestModelTUI_View
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1030
Function
TestModelTUI_View_CustomModel
(t *testing.T)
cmd/opencodereview/provider_tui_funcs_test.go:1042
Function
TestModelsAPIDiagnostics
(t *testing.T)
internal/chatgptauth/recovery_test.go:337
Function
TestModelsCatalog
(t *testing.T)
internal/chatgptauth/lifecycle_test.go:244
Function
TestMux_HasNoWriteRoutes
The viewer is read-only: no route may accept a write. The mux registers its document routes with GET-only patterns, so any state-changing method is an
internal/viewer/handler_test.go:448
Function
TestNativeTurn_CrossProviderFallback
TestNativeTurn_CrossProviderFallback proves that a Native payload built by one adapter safely falls back to ordinary Content/ToolCalls reconstruction
internal/llm/native_turn_test.go:225
Function
TestNaturalClarify
(t *testing.T)
acp/internal/intent/natural_test.go:148
Function
TestNaturalClarifyChainPreservesPartialSlots
(t *testing.T)
acp/internal/intent/natural_test.go:202
Function
TestNaturalClarifyTypeSwitchDoesNotLeakReview
(t *testing.T)
acp/internal/intent/natural_test.go:230
Function
TestNaturalClarifyWithoutPartialSlots
(t *testing.T)
acp/internal/intent/natural_test.go:166
Function
TestNaturalCommitClarificationPreservesTypeAndQuestion
(t *testing.T)
acp/internal/intent/natural_test.go:323
Function
TestNaturalFollowUpMergesPendingSlots
(t *testing.T)
acp/internal/intent/natural_test.go:181
Function
TestNaturalForbiddenExtra
(t *testing.T)
acp/internal/intent/natural_test.go:415
Function
TestNaturalIntents
(t *testing.T)
acp/internal/intent/natural_test.go:88
Function
TestNaturalLLMFailures
(t *testing.T)
acp/internal/intent/natural_test.go:432
Function
TestNaturalLanguageCatalog
(t *testing.T)
acp/internal/intent/nl_catalog_test.go:57
Function
TestNaturalLatestCommitInstructionsAndValidation
(t *testing.T)
acp/internal/intent/natural_test.go:43
Function
TestNaturalRefValidation
(t *testing.T)
acp/internal/intent/natural_test.go:387
Function
TestNaturalReject
(t *testing.T)
acp/internal/intent/natural_test.go:348
← previous
next →
4,601–4,700 of 7,390, ranked by callers