MCPcopy Create free account

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

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

FunctionTestParseDiffText_NewFile
TestParseDiffText_NewFile covers "--- /dev/null" (no a/ prefix).
internal/diff/parser_test.go:214
FunctionTestParseDiffText_PureRename
TestParseDiffText_PureRename covers a 100% similarity rename, which carries no hunks and no ---/+++ lines at all.
internal/diff/parser_test.go:161
FunctionTestParseDiffText_QuotedPathFromRealGit
TestParseDiffText_QuotedPathFromRealGit runs the whole path against git itself rather than a handwritten fixture, so the escape spelling under test is
internal/diff/quotedpath_test.go:190
FunctionTestParseDiffText_QuotedPathIsNotDropped
TestParseDiffText_QuotedPathIsNotDropped is the coverage-gap assertion: the file must appear in the parsed diff at all. Before the fix the header did
internal/diff/quotedpath_test.go:121
FunctionTestParseDiffText_QuotedRenamePaths
TestParseDiffText_QuotedRenamePaths pins the other place the same quoting appears. "rename from"/"rename to" are authoritative for renames and overwri
internal/diff/quotedpath_test.go:161
FunctionTestParseDiffText_RealGitPathHeaders
(t *testing.T)
internal/diff/parser_git_test.go:16
FunctionTestParseDiffText_Rename
TestParseDiffText_Rename guards against issue #99: a renamed file must be recognized via the "rename from"/"rename to" extended header lines so that t
internal/diff/parser_test.go:57
FunctionTestParseDiffText_SamePathHeaderWithDelimiterInPath
TestParseDiffText_SamePathHeaderWithDelimiterInPath covers a bare "diff --git" header whose only delimiter-looking " b/" sits inside the pathname itse
internal/diff/parser_test.go:99
FunctionTestParseDiffText_StripsIndexHeadersFromPromptDiff
(t *testing.T)
internal/diff/parser_test.go:12
FunctionTestParseEffort_CaseInsensitive
(t *testing.T)
internal/config/template/effort_test.go:20
FunctionTestParseEffort_Invalid
(t *testing.T)
internal/config/template/effort_test.go:30
FunctionTestParseEffort_Valid
(t *testing.T)
internal/config/template/effort_test.go:8
FunctionTestParseExtraHeaders
(t *testing.T)
internal/llm/resolver_test.go:1553
FunctionTestParseFilterResponse
(t *testing.T)
internal/agent/agent_test.go:190
FunctionTestParseFilterToolCalls
(t *testing.T)
internal/agent/agent_test.go:262
FunctionTestParseGitVersion
(t *testing.T)
internal/gitcmd/version_test.go:14
FunctionTestParseGroupingGroups
(t *testing.T)
internal/viewer/store_test.go:76
FunctionTestParseGroupingResponse_DuplicateFile
(t *testing.T)
internal/agent/grouping_test.go:100
FunctionTestParseGroupingResponse_InvalidJSON
(t *testing.T)
internal/agent/grouping_test.go:155
FunctionTestParseGroupingResponse_MarkdownFenced
(t *testing.T)
internal/agent/grouping_test.go:85
FunctionTestParseGroupingResponse_MissingFile
(t *testing.T)
internal/agent/grouping_test.go:118
FunctionTestParseGroupingResponse_Truncated
(t *testing.T)
internal/agent/grouping_test.go:163
FunctionTestParseGroupingResponse_UnknownFile
(t *testing.T)
internal/agent/grouping_test.go:137
FunctionTestParseGroupingResponse_Valid
(t *testing.T)
internal/agent/grouping_test.go:60
FunctionTestParseHunks_CRLFKeepsLineContentClean
ParseHunks splits the same text, so hunk content carried the CR too. Line content is compared against file content when resolving comment positions.
internal/diff/crlf_test.go:111
FunctionTestParseHunks_EmptyInput
(t *testing.T)
internal/diff/hunk_test.go:96
FunctionTestParseHunks_MultipleHunks
(t *testing.T)
internal/diff/hunk_test.go:45
FunctionTestParseHunks_NewFileAllAdditions
(t *testing.T)
internal/diff/hunk_test.go:103
FunctionTestParseHunks_NoNewlineMarker
(t *testing.T)
internal/diff/hunk_test.go:81
FunctionTestParseHunks_SingleHunk
(t *testing.T)
internal/diff/hunk_test.go:10
FunctionTestParseInventory
(test *testing.T)
internal/behaviortask/prepare_test.go:268
FunctionTestParseModelListValue
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1598
FunctionTestParseOTLPEndpoint
(t *testing.T)
internal/telemetry/exporter_test.go:20
FunctionTestParseRecordTime
TestParseRecordTime covers the empty, valid-RFC3339, and garbage branches.
internal/session/list_more_test.go:15
FunctionTestParseRepairedComments_DeclinesWhenNothingToEscape
(t *testing.T)
internal/tool/comment_args_repair_test.go:407
FunctionTestParseRetryAfterMS
--- header parsing units --- Priority and units follow the SDKs' parseRetryAfterHeader exactly: Retry-After-Ms first and in milliseconds, then Retry-A
internal/llm/retry_observer_test.go:583
FunctionTestParseRetryCodes
(t *testing.T)
internal/llm/resolver_test.go:2579
FunctionTestParseRetryDirective
Only the two values the SDKs act on are recorded. Anything else is absent rather than coerced to false, because the SDK ignores it too and a false wou
internal/llm/retry_observer_test.go:632
FunctionTestParseReviewFlagsAllowsFromAndTo
(t *testing.T)
cmd/opencodereview/review_cmd_test.go:228
FunctionTestParseReviewFlagsBackgroundFile
(t *testing.T)
cmd/opencodereview/flags_test.go:13
FunctionTestParseReviewFlagsFromWithoutToDefaultsToHead
(t *testing.T)
cmd/opencodereview/review_cmd_test.go:201
FunctionTestParseReviewFlagsModelOverride
(t *testing.T)
cmd/opencodereview/flags_test.go:27
FunctionTestParseReviewFlagsProviderAndModelOverrides
(t *testing.T)
cmd/opencodereview/flags_test.go:44
FunctionTestParseReviewFlagsRejectsToWithoutFrom
(t *testing.T)
cmd/opencodereview/review_cmd_test.go:191
FunctionTestParseReviewFlagsResume
(t *testing.T)
cmd/opencodereview/flags_test.go:54
FunctionTestParseReviewFlags_BudgetFlagsDefaultZero
(t *testing.T)
cmd/opencodereview/flags_test.go:126
FunctionTestParseReviewFlags_BudgetFlagsParsed
(t *testing.T)
cmd/opencodereview/flags_test.go:136
FunctionTestParseReviewFlags_ConflictingModes
(t *testing.T)
cmd/opencodereview/flags_test.go:146
FunctionTestParseReviewFlags_FromDefaultsToHead
(t *testing.T)
cmd/opencodereview/flags_test.go:153
FunctionTestParseReviewFlags_FromWithCommitStillConflicts
(t *testing.T)
cmd/opencodereview/flags_test.go:173
FunctionTestParseReviewFlags_InvalidAudience
(t *testing.T)
cmd/opencodereview/flags_test.go:71
FunctionTestParseReviewFlags_InvalidFormat
(t *testing.T)
cmd/opencodereview/flags_test.go:355
FunctionTestParseReviewFlags_MaxTokensParsed
(t *testing.T)
cmd/opencodereview/flags_test.go:116
FunctionTestParseReviewFlags_MaxToolsBelowMin
(t *testing.T)
cmd/opencodereview/flags_test.go:85
FunctionTestParseReviewFlags_NegativeMaxGitProcs
(t *testing.T)
cmd/opencodereview/flags_test.go:95
FunctionTestParseReviewFlags_NegativeMaxTokens
(t *testing.T)
cmd/opencodereview/flags_test.go:109
FunctionTestParseReviewFlags_NegativeMaxTokensBudget
(t *testing.T)
cmd/opencodereview/flags_test.go:102
FunctionTestParseReviewFlags_NegativeMaxTools
(t *testing.T)
cmd/opencodereview/flags_test.go:78
FunctionTestParseReviewFlags_NormalizedFormat
(t *testing.T)
cmd/opencodereview/flags_test.go:369
FunctionTestParseReviewFlags_OutputPath
(t *testing.T)
cmd/opencodereview/flags_test.go:321
FunctionTestParseReviewFlags_PlainReviewKeepsWorkspaceMode
(t *testing.T)
cmd/opencodereview/flags_test.go:163
FunctionTestParseReviewFlags_PreviewWithResume
(t *testing.T)
cmd/opencodereview/flags_test.go:64
FunctionTestParseReviewFlags_ShortFlags
(t *testing.T)
cmd/opencodereview/flags_test.go:227
FunctionTestParseReviewFlags_ToWithoutFrom
(t *testing.T)
cmd/opencodereview/flags_test.go:220
FunctionTestParseReviewMode
(t *testing.T)
internal/tool/filereader_test.go:32
FunctionTestParseScanFlags_AllStringFlags
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:268
FunctionTestParseScanFlags_BareCommandScansWholeRepo
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:112
FunctionTestParseScanFlags_BooleanFlags
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:209
FunctionTestParseScanFlags_DefaultsValid
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:152
FunctionTestParseScanFlags_HelpFlag
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:181
FunctionTestParseScanFlags_IntFlags
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:304
FunctionTestParseScanFlags_InvalidFormat
(t *testing.T)
cmd/opencodereview/flags_test.go:362
FunctionTestParseScanFlags_ModelOverride
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:228
FunctionTestParseScanFlags_NormalizedFormat
(t *testing.T)
cmd/opencodereview/flags_test.go:379
FunctionTestParseScanFlags_OutputPath
(t *testing.T)
cmd/opencodereview/flags_test.go:345
FunctionTestParseScanFlags_PathNarrowsScope
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:171
FunctionTestParseScanFlags_PreviewWithResume
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:258
FunctionTestParseScanFlags_ProviderAndModelOverrides
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:238
FunctionTestParseScanFlags_RejectsInvalidAudience
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:122
FunctionTestParseScanFlags_RejectsNegativeMaxGitProcs
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:142
FunctionTestParseScanFlags_RejectsNegativeMaxTokens
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:199
FunctionTestParseScanFlags_RejectsNegativeMaxTokensBudget
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:189
FunctionTestParseScanFlags_RejectsNegativeMaxTools
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:132
FunctionTestParseScanFlags_Resume
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:248
FunctionTestParseShellRC
(t *testing.T)
internal/llm/message_test.go:276
FunctionTestParseShellRC_Incomplete
(t *testing.T)
internal/llm/message_test.go:338
FunctionTestParseShellRC_ModelOverride
(t *testing.T)
internal/llm/message_test.go:314
FunctionTestParseShellRC_NonexistentFile
(t *testing.T)
internal/llm/message_test.go:359
FunctionTestParseTemplate_CommentsToolbarMockup
(t *testing.T)
internal/viewer/server_startserver_test.go:224
FunctionTestParseTemplate_ExistingCodeLineNumbers
TestParseTemplate_ExistingCodeLineNumbers asserts the rendered session page, not which helper ran: a trustworthy range gets a per-line gutter, anythin
internal/viewer/server_startserver_test.go:311
FunctionTestParseTemplate_NonExistent
(t *testing.T)
internal/viewer/server_extra_test.go:54
FunctionTestParseTemplate_ReposHTML
(t *testing.T)
internal/viewer/server_extra_test.go:24
FunctionTestParseTemplate_SessionHTML
(t *testing.T)
internal/viewer/server_extra_test.go:44
FunctionTestParseTemplate_SessionWithComments
TestParseTemplate_SessionWithComments renders session.html with review comments spanning several severities and categories so the template helpers (se
internal/viewer/server_startserver_test.go:172
FunctionTestParseTemplate_SessionsHTML
(t *testing.T)
internal/viewer/server_extra_test.go:34
FunctionTestParseTemplate_SharedHeader
Execute each page independently: parsing alone misses undefined partials, and parsing every page together can overwrite page-specific breadcrumbs.
internal/viewer/server_extra_test.go:63
FunctionTestParseTimeoutEnv
(t *testing.T)
internal/llm/resolver_test.go:1914
FunctionTestParseToolArgs_NoValidJSONStillErrors
TestParseToolArgs_NoValidJSONStillErrors confirms the recovery path is a pure addition: a raw string with no balanced JSON value anywhere still return
internal/reviewtask/tool_args_json_test.go:35
FunctionTestParseToolArgs_TrailingContentAfterValidJSON
TestParseToolArgs_TrailingContentAfterValidJSON is the reported bug: a harmony-format model (openai.gpt-oss-20b-1:0 on Bedrock) leaks control tokens r
internal/reviewtask/tool_args_json_test.go:13
FunctionTestParserConfigurationIsExplicit
(t *testing.T)
acp/cmd/ocr-acp/main_test.go:23
← previousnext →5,001–5,100 of 7,484, ranked by callers