diff --git a/patch.go b/patch.go index a494fba..9cd2c50 100644 --- a/patch.go +++ b/patch.go @@ -37,7 +37,7 @@ func (patch *Patch) Free() error { return nil } -func (patch *Patch) Stats() (uint, uint, error) { +func (patch *Patch) LineStats() (uint, uint, error) { if patch.ptr == nil { return 0, 0, ErrInvalid } diff --git a/patch_test.go b/patch_test.go index b91011d..6b4b186 100644 --- a/patch_test.go +++ b/patch_test.go @@ -36,12 +36,12 @@ func TestPatch(t *testing.T) { t.Fatalf("patch was bad") } - numAdditions, numDeletions, err := patch.Stats() + numAdditions, numDeletions, err := patch.LineStats() checkFatal(t, err) if numAdditions != 1 { - t.Fatal("Incorrect number of additions in stats") + t.Fatal("Incorrect number of additions in line stats") } if numDeletions != 1 { - t.Fatal("Incorrect number of deletions in stats") + t.Fatal("Incorrect number of deletions in line stats") } }