MCPcopy Index your code
hub / github.com/antonmedv/gitmal / Errorf

Method Errorf

pkg/gitdiff/parser.go:140–142  ·  view source on GitHub ↗

Errorf generates an error and appends the current line information.

(delta int64, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

138
139// Errorf generates an error and appends the current line information.
140func (p *parser) Errorf(delta int64, msg string, args ...interface{}) error {
141 return fmt.Errorf("gitdiff: line %d: %s", p.lineno+delta, fmt.Sprintf(msg, args...))
142}

Callers 15

ParseTextFragmentsMethod · 0.95
ParseTextChunkMethod · 0.95
ParseBinaryFragmentsMethod · 0.95
ParseBinaryChunkMethod · 0.95
ParseNextFileHeaderMethod · 0.95
ParseGitFileHeaderMethod · 0.95
generateBlobsFunction · 0.80
generateCommitPageFunction · 0.80

Calls

no outgoing calls

Tested by 15

runMethod · 0.64
TestFormatRoundtripFunction · 0.64
assertFilesEqualFunction · 0.64
assertEqualFunction · 0.64
TestParseNextFileHeaderFunction · 0.64
TestParseFunction · 0.64
TestParsePatchDateFunction · 0.64
TestParsePatchHeaderFunction · 0.64
assertPatchIdentityFunction · 0.64
TestCleanSubjectFunction · 0.64