blobref: Equals is named Equal everywhere else

Change-Id: Ic45c05a8467e8d597ef4c8038a6067e075a1fdcc
This commit is contained in:
Brad Fitzpatrick 2011-12-01 17:13:42 -08:00
parent ffb43a01a8
commit 476329cfb3
2 changed files with 3 additions and 3 deletions

View File

@ -105,7 +105,7 @@ func (b *BlobRef) DomID() string {
return "camli-" + b.String()
}
func (o *BlobRef) Equals(other *BlobRef) bool {
func (o *BlobRef) Equal(other *BlobRef) bool {
return o.hashName == other.hashName && o.digest == other.digest
}

View File

@ -84,7 +84,7 @@ func TestHubFiring(t *testing.T) {
case <-tmr1.C:
t.Fatal("timer expired on receiving from ch")
case got := <-ch:
if !blob.Equals(got) {
if !blob.Equal(got) {
t.Fatalf("got wrong blob")
}
}
@ -93,7 +93,7 @@ func TestHubFiring(t *testing.T) {
case <-tmr1.C:
t.Fatal("timer expired on receiving from bch")
case got := <-bch:
if !blob.Equals(got) {
if !blob.Equal(got) {
t.Fatalf("got wrong blob")
}
}