Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/antonmedv/gitmal
/ newTestParser
Function
newTestParser
pkg/gitdiff/parser_test.go:505–511 ·
view source on GitHub ↗
(input string, init bool)
Source
from the content-addressed store, hash-verified
503
}
504
505
func
newTestParser(input string, init bool) *parser {
506
p := newParser(bytes.NewBufferString(input))
507
if
init {
508
_ = p.Next()
509
}
510
return
p
511
}
Callers
12
TestLineOperations
Function · 0.85
TestParserInvariant_Advancement
Function · 0.85
TestParseNextFileHeader
Function · 0.85
TestParseBinaryMarker
Function · 0.85
TestParseBinaryFragmentHeader
Function · 0.85
TestParseBinaryChunk
Function · 0.85
TestParseBinaryFragments
Function · 0.85
TestParseTextFragmentHeader
Function · 0.85
TestParseTextChunk
Function · 0.85
TestParseTextFragments
Function · 0.85
TestParseGitFileHeader
Function · 0.85
TestParseTraditionalFileHeader
Function · 0.85
Calls
2
newParser
Function · 0.85
Next
Method · 0.80
Tested by
no test coverage detected