MCPcopy Create free account
hub / github.com/evilsocket/sum / Is

Method Is

wrapper/record.go:50–55  ·  view source on GitHub ↗

Is returns true if this wrapped record and another wrapped record have the same identifier, in other words if they are just two wrappers around the same *pb.Record object.

(b *Record)

Source from the content-addressed store, hash-verified

48// record have the same identifier, in other words if they
49// are just two wrappers around the same *pb.Record object.
50func (w *Record) Is(b *Record) bool {
51 if w.record == nil || b.record == nil {
52 return false
53 }
54 return w.ID == b.ID
55}
56
57// Get returns the index-th elements of the *pb.Record contained
58// by this wrapper.

Callers 2

TestWrappedRecordIsFunction · 0.45
BenchmarkWrappedRecordIsFunction · 0.45

Calls

no outgoing calls

Tested by 2

TestWrappedRecordIsFunction · 0.36
BenchmarkWrappedRecordIsFunction · 0.36