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
TestOutputText_NoComments
(t *testing.T)
cmd/opencodereview/output_helpers_test.go:538
Function
TestOutputText_WithComments
(t *testing.T)
cmd/opencodereview/output_helpers_test.go:547
Function
TestPagerCSS_StaysHiddenUntilScripted
(t *testing.T)
internal/viewer/server_extra_test.go:322
Function
TestPagerJS_Contract
(t *testing.T)
internal/viewer/server_extra_test.go:975
Function
TestParentCommands_KnownSubcommandStillWorks
TestParentCommands_KnownSubcommandStillWorks ensures that adding RunE to parent commands does not break legitimate subcommand routing.
cmd/opencodereview/parent_cmd_test.go:53
Function
TestParentCommands_NoArgsPrintsHelp
TestParentCommands_NoArgsPrintsHelp verifies that invoking a parent command with no arguments still prints help and exits 0 (RunE returns cmd.Help() w
cmd/opencodereview/parent_cmd_test.go:92
Function
TestParentCommands_UnknownSubcommand
TestParentCommands_UnknownSubcommand verifies that parent commands which previously silently printed help and exited 0 now return a non-zero exit code
cmd/opencodereview/parent_cmd_test.go:17
Function
TestParseBatchStrategy
(t *testing.T)
internal/scan/batch_test.go:33
Function
TestParseBpeData_EmptyLines
(t *testing.T)
internal/llm/embedded_loader_test.go:26
Function
TestParseBpeData_InvalidBase64
(t *testing.T)
internal/llm/embedded_loader_test.go:45
Function
TestParseBpeData_InvalidLine
(t *testing.T)
internal/llm/embedded_loader_test.go:37
Function
TestParseBpeData_InvalidRank
(t *testing.T)
internal/llm/embedded_loader_test.go:53
Function
TestParseBpeData_Valid
(t *testing.T)
internal/llm/embedded_loader_test.go:11
Function
TestParseComments
(t *testing.T)
internal/tool/code_comment_test.go:15
Function
TestParseComments_CategorySeverity
TestParseComments_CategorySeverity verifies the structured category and severity fields are read off each comment object when present, and left zero-v
internal/tool/code_comment_test.go:142
Function
TestParseComments_CategorySeveritySchemaDrift
(t *testing.T)
internal/tool/code_comment_test.go:223
Function
TestParseComments_CleanRepairIsAcceptedIntact
TestParseComments_CleanRepairIsAcceptedIntact is the contrast that keeps the detector honest: every fixture here is an actually-observed failure shape
internal/tool/comment_args_repair_test.go:468
Function
TestParseComments_Fields
(t *testing.T)
internal/tool/code_comment_test.go:102
Function
TestParseComments_NormalizePath
(t *testing.T)
internal/tool/code_comment_test.go:385
Function
TestParseComments_RepairKeepsEveryCommentInTheBatch
(t *testing.T)
internal/tool/comment_args_repair_test.go:95
Function
TestParseComments_RepairRejectedWhenABatchEntryEndsUpEmpty
(t *testing.T)
internal/tool/comment_args_repair_test.go:132
Function
TestParseComments_RepairRejectedWhenProseBecameAField
(t *testing.T)
internal/tool/comment_args_repair_test.go:206
Function
TestParseComments_RepairsAllControlCharacters
(t *testing.T)
internal/tool/comment_args_repair_test.go:190
Function
TestParseComments_RepairsBareControlCharacter
(t *testing.T)
internal/tool/comment_args_repair_test.go:79
Function
TestParseComments_RepairsIllegalBackslashEscape
(t *testing.T)
internal/tool/comment_args_repair_test.go:153
Function
TestParseComments_RepairsProseQuoteAcrossMultiByteRunes
(t *testing.T)
internal/tool/comment_args_repair_test.go:61
Function
TestParseComments_RepairsUnescapedProseQuote
(t *testing.T)
internal/tool/comment_args_repair_test.go:36
Function
TestParseComments_SuspectContentRejectsTheBatch
(t *testing.T)
internal/tool/comment_args_repair_test.go:449
Function
TestParseComments_SuspectExistingCodeRejectsTheBatch
(t *testing.T)
internal/tool/comment_args_repair_test.go:454
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:76
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:268
Function
TestParseModelListValue
(t *testing.T)
cmd/opencodereview/config_cmd_test.go:1539
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:585
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:634
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
← previous
next →
4,901–5,000 of 7,390, ranked by callers