Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,633 in github.com/alibaba/open-code-review
⨍
Functions
7,633
◇
Types & classes
817
Function
TestParseComments_SuspectPathRejectsTheBatch
(t *testing.T)
internal/tool/comment_args_repair_test.go:460
Function
TestParseComments_SuspectSuggestionRejectsTheBatch
One case per checked field, each feeding a value the scan cuts short. All must be refused rather than partially recovered: a cut existing_code matches
internal/tool/comment_args_repair_test.go:443
Function
TestParseComments_TruncatedThinkingStillAccepted
TestParseComments_TruncatedThinkingStillAccepted pins the decision to leave thinking out of commentTextFields. Adding it looks like a completeness win
internal/tool/comment_args_repair_test.go:504
Function
TestParseComments_UnrepairableKeepsOriginalParserWording
(t *testing.T)
internal/tool/comment_args_repair_test.go:114
Function
TestParseComments_WellFormedInputReportsNoRepair
(t *testing.T)
internal/tool/comment_args_repair_test.go:308
Function
TestParseDiffHeaderLine_QuotingCombinations
TestParseDiffHeaderLine_QuotingCombinations covers issue #1492. Git quotes the two sides of a header independently, so a changed file can arrive in an
internal/diff/quotedpath_test.go:64
Function
TestParseDiffText_AmbiguousRenameHeaderStillUsesRenameLines
TestParseDiffText_AmbiguousRenameHeaderStillUsesRenameLines pins that a rename whose two paths both contain " b/" keeps taking its paths from the "ren
internal/diff/parser_test.go:131
Function
TestParseDiffText_BinaryMarkerAnchored
TestParseDiffText_BinaryMarkerAnchored guards two binary-detection cases: a text file whose CONTENT mentions "Binary files " must not be classified as
internal/diff/parser_test.go:249
Function
TestParseDiffText_CRLFKeepsDevNullMetadata
The "new file mode" / "deleted file mode" headers are matched by prefix, so they survive a trailing CR on their own. The /dev/null markers are compare
internal/diff/crlf_test.go:50
Function
TestParseDiffText_CRLFKeepsPathsClean
CRLF-terminated diff text reaches the parser from a .patch checked out under core.autocrlf=true, or from output captured through a Windows shell. Befo
internal/diff/crlf_test.go:16
Function
TestParseDiffText_CountsContentLinesWithPlusMinusPrefix
TestParseDiffText_CountsContentLinesWithPlusMinusPrefix covers content lines that themselves begin with "++"/"--": an added line "++i" renders in the
internal/diff/parser_test.go:286
Function
TestParseDiffText_DeletedFile
TestParseDiffText_DeletedFile guards the /dev/null detection: git emits "+++ /dev/null" WITHOUT the b/ prefix, which the old regexes required, so dele
internal/diff/parser_test.go:184
Function
TestParseDiffText_DevNullStringInsideHunk
TestParseDiffText_DevNullStringInsideHunk ensures an added content line whose rendered form is exactly "+++ /dev/null" (i.e. the file gained a line re
internal/diff/parser_test.go:317
Function
TestParseDiffText_NewFile
TestParseDiffText_NewFile covers "--- /dev/null" (no a/ prefix).
internal/diff/parser_test.go:214
Function
TestParseDiffText_PureRename
TestParseDiffText_PureRename covers a 100% similarity rename, which carries no hunks and no ---/+++ lines at all.
internal/diff/parser_test.go:161
Function
TestParseDiffText_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
Function
TestParseDiffText_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
Function
TestParseDiffText_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
Function
TestParseDiffText_RealGitPathHeaders
(t *testing.T)
internal/diff/parser_git_test.go:16
Function
TestParseDiffText_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
Function
TestParseDiffText_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
Function
TestParseDiffText_StripsIndexHeadersFromPromptDiff
(t *testing.T)
internal/diff/parser_test.go:12
Function
TestParseEffort_CaseInsensitive
(t *testing.T)
internal/config/template/effort_test.go:20
Function
TestParseEffort_Invalid
(t *testing.T)
internal/config/template/effort_test.go:30
Function
TestParseEffort_Valid
(t *testing.T)
internal/config/template/effort_test.go:8
Function
TestParseExtraHeaders
(t *testing.T)
internal/llm/resolver_test.go:1553
Function
TestParseFilterResponse
(t *testing.T)
internal/agent/agent_test.go:190
Function
TestParseFilterToolCalls
(t *testing.T)
internal/agent/agent_test.go:262
Function
TestParseGitVersion
(t *testing.T)
internal/gitcmd/version_test.go:14
Function
TestParseGroupingGroups
(t *testing.T)
internal/viewer/store_test.go:79
Function
TestParseGroupingResponse_DuplicateFile
(t *testing.T)
internal/agent/grouping_test.go:100
Function
TestParseGroupingResponse_InvalidJSON
(t *testing.T)
internal/agent/grouping_test.go:155
Function
TestParseGroupingResponse_MarkdownFenced
(t *testing.T)
internal/agent/grouping_test.go:85
Function
TestParseGroupingResponse_MissingFile
(t *testing.T)
internal/agent/grouping_test.go:118
Function
TestParseGroupingResponse_Truncated
(t *testing.T)
internal/agent/grouping_test.go:163
Function
TestParseGroupingResponse_UnknownFile
(t *testing.T)
internal/agent/grouping_test.go:137
Function
TestParseGroupingResponse_Valid
(t *testing.T)
internal/agent/grouping_test.go:60
Function
TestParseHunks_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
Function
TestParseHunks_EmptyInput
(t *testing.T)
internal/diff/hunk_test.go:96
Function
TestParseHunks_MultipleHunks
(t *testing.T)
internal/diff/hunk_test.go:45
Function
TestParseHunks_NewFileAllAdditions
(t *testing.T)
internal/diff/hunk_test.go:103
Function
TestParseHunks_NoNewlineMarker
(t *testing.T)
internal/diff/hunk_test.go:81
Function
TestParseHunks_SingleHunk
(t *testing.T)
internal/diff/hunk_test.go:10
Function
TestParseInventory
(test *testing.T)
internal/behaviortask/prepare_test.go:517
Function
TestParseModelListValue
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1598
Function
TestParseOTLPEndpoint
(t *testing.T)
internal/telemetry/exporter_test.go:20
Function
TestParseRecordTime
TestParseRecordTime covers the empty, valid-RFC3339, and garbage branches.
internal/session/list_more_test.go:15
Function
TestParseRepairedComments_DeclinesWhenNothingToEscape
(t *testing.T)
internal/tool/comment_args_repair_test.go:407
Function
TestParseRetryAfterMS
--- 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
Function
TestParseRetryCodes
(t *testing.T)
internal/llm/resolver_test.go:2579
Function
TestParseRetryDirective
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
Function
TestParseReviewFlagsAllowsFromAndTo
(t *testing.T)
cmd/opencodereview/review_cmd_test.go:228
Function
TestParseReviewFlagsBackgroundFile
(t *testing.T)
cmd/opencodereview/flags_test.go:13
Function
TestParseReviewFlagsFromWithoutToDefaultsToHead
(t *testing.T)
cmd/opencodereview/review_cmd_test.go:201
Function
TestParseReviewFlagsModelOverride
(t *testing.T)
cmd/opencodereview/flags_test.go:27
Function
TestParseReviewFlagsProviderAndModelOverrides
(t *testing.T)
cmd/opencodereview/flags_test.go:44
Function
TestParseReviewFlagsRejectsToWithoutFrom
(t *testing.T)
cmd/opencodereview/review_cmd_test.go:191
Function
TestParseReviewFlagsResume
(t *testing.T)
cmd/opencodereview/flags_test.go:54
Function
TestParseReviewFlags_BudgetFlagsDefaultZero
(t *testing.T)
cmd/opencodereview/flags_test.go:126
Function
TestParseReviewFlags_BudgetFlagsParsed
(t *testing.T)
cmd/opencodereview/flags_test.go:136
Function
TestParseReviewFlags_ConflictingModes
(t *testing.T)
cmd/opencodereview/flags_test.go:146
Function
TestParseReviewFlags_FromDefaultsToHead
(t *testing.T)
cmd/opencodereview/flags_test.go:153
Function
TestParseReviewFlags_FromWithCommitStillConflicts
(t *testing.T)
cmd/opencodereview/flags_test.go:173
Function
TestParseReviewFlags_InvalidAudience
(t *testing.T)
cmd/opencodereview/flags_test.go:71
Function
TestParseReviewFlags_InvalidFormat
(t *testing.T)
cmd/opencodereview/flags_test.go:355
Function
TestParseReviewFlags_MaxTokensParsed
(t *testing.T)
cmd/opencodereview/flags_test.go:116
Function
TestParseReviewFlags_MaxToolsBelowMin
(t *testing.T)
cmd/opencodereview/flags_test.go:85
Function
TestParseReviewFlags_NegativeMaxGitProcs
(t *testing.T)
cmd/opencodereview/flags_test.go:95
Function
TestParseReviewFlags_NegativeMaxTokens
(t *testing.T)
cmd/opencodereview/flags_test.go:109
Function
TestParseReviewFlags_NegativeMaxTokensBudget
(t *testing.T)
cmd/opencodereview/flags_test.go:102
Function
TestParseReviewFlags_NegativeMaxTools
(t *testing.T)
cmd/opencodereview/flags_test.go:78
Function
TestParseReviewFlags_NormalizedFormat
(t *testing.T)
cmd/opencodereview/flags_test.go:369
Function
TestParseReviewFlags_OutputPath
(t *testing.T)
cmd/opencodereview/flags_test.go:321
Function
TestParseReviewFlags_PlainReviewKeepsWorkspaceMode
(t *testing.T)
cmd/opencodereview/flags_test.go:163
Function
TestParseReviewFlags_PreviewWithResume
(t *testing.T)
cmd/opencodereview/flags_test.go:64
Function
TestParseReviewFlags_ShortFlags
(t *testing.T)
cmd/opencodereview/flags_test.go:227
Function
TestParseReviewFlags_ToWithoutFrom
(t *testing.T)
cmd/opencodereview/flags_test.go:220
Function
TestParseReviewMode
(t *testing.T)
internal/tool/filereader_test.go:32
Function
TestParseScanFlags_AllStringFlags
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:283
Function
TestParseScanFlags_BareCommandScansWholeRepo
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:127
Function
TestParseScanFlags_BooleanFlags
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:224
Function
TestParseScanFlags_DefaultsValid
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:167
Function
TestParseScanFlags_HelpFlag
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:196
Function
TestParseScanFlags_IntFlags
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:319
Function
TestParseScanFlags_InvalidFormat
(t *testing.T)
cmd/opencodereview/flags_test.go:362
Function
TestParseScanFlags_ModelOverride
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:243
Function
TestParseScanFlags_NormalizedFormat
(t *testing.T)
cmd/opencodereview/flags_test.go:379
Function
TestParseScanFlags_OutputPath
(t *testing.T)
cmd/opencodereview/flags_test.go:345
Function
TestParseScanFlags_PathNarrowsScope
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:186
Function
TestParseScanFlags_PreviewWithResume
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:273
Function
TestParseScanFlags_ProviderAndModelOverrides
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:253
Function
TestParseScanFlags_RejectsInvalidAudience
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:137
Function
TestParseScanFlags_RejectsNegativeMaxGitProcs
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:157
Function
TestParseScanFlags_RejectsNegativeMaxTokens
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:214
Function
TestParseScanFlags_RejectsNegativeMaxTokensBudget
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:204
Function
TestParseScanFlags_RejectsNegativeMaxTools
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:147
Function
TestParseScanFlags_Resume
(t *testing.T)
cmd/opencodereview/scan_cmd_test.go:263
Function
TestParseShellRC
(t *testing.T)
internal/llm/message_test.go:276
Function
TestParseShellRC_Incomplete
(t *testing.T)
internal/llm/message_test.go:338
Function
TestParseShellRC_ModelOverride
(t *testing.T)
internal/llm/message_test.go:314
← previous
next →
5,101–5,200 of 7,633, ranked by callers