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

Function checkHunk

blame_test.go:65–73  ·  view source on GitHub ↗
(t *testing.T, label string, hunk, want BlameHunk)

Source from the content-addressed store, hash-verified

63}
64
65func checkHunk(t *testing.T, label string, hunk, want BlameHunk) {
66 hunk.FinalSignature = nil
67 want.FinalSignature = nil
68 hunk.OrigSignature = nil
69 want.OrigSignature = nil
70 if !reflect.DeepEqual(hunk, want) {
71 t.Fatalf("%s: got hunk %+v, want %+v", label, hunk, want)
72 }
73}

Callers 1

TestBlameFunction · 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…