MCPcopy
hub / github.com/go-git/go-git / combineErr

Function combineErr

tests/objectverify/commit_test.go:167–172  ·  view source on GitHub ↗

combineErr returns the first non-nil of decode, verify. Decode failure is treated the same way as a verify failure.

(decode, verify error)

Source from the content-addressed store, hash-verified

165// combineErr returns the first non-nil of decode, verify.
166// Decode failure is treated the same way as a verify failure.
167func combineErr(decode, verify error) error {
168 if decode != nil {
169 return decode
170 }
171 return verify
172}
173
174// assertSameVerdict fails the test unless both verifiers agree on
175// success-or-failure. It does not compare error messages, only verdicts.

Callers 2

TestTagVerifyAlignmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…