mirror of https://github.com/perkeep/perkeep.git
blobref: Equals is named Equal everywhere else
Change-Id: Ic45c05a8467e8d597ef4c8038a6067e075a1fdcc
This commit is contained in:
parent
ffb43a01a8
commit
476329cfb3
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue