MCPcopy Create free account
hub / github.com/libgit2/git2go / checkFatal

Function checkFatal

index_test.go:271–282  ·  view source on GitHub ↗
(t *testing.T, err error)

Source from the content-addressed store, hash-verified

269}
270
271func checkFatal(t *testing.T, err error) {
272 if err == nil {
273 return
274 }
275
276 // The failure happens at wherever we were called, not here
277 _, file, line, ok := runtime.Caller(1)
278 if !ok {
279 t.Fatalf("Unable to get caller")
280 }
281 t.Fatalf("Fail at %v:%v; %v", file, line, err)
282}

Callers 15

TestPatchFunction · 0.85
TestBlameFunction · 0.85
TestCreateCommitBufferFunction · 0.85
TestCreateCommitFromIdsFunction · 0.85
TestRepositorySetConfigFunction · 0.85
TestRepositoryItemPathFunction · 0.85
TestRevertFunction · 0.85
TestRevertCommitFunction · 0.85
TestCreateNoteFunction · 0.85
TestNoteIteratorFunction · 0.85
TestRemoveNoteFunction · 0.85
TestDefaultNoteRefFunction · 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…