MCPcopy Index your code
hub / github.com/syncthing/syncthing / Equal

Method Equal

lib/protocol/vector.go:194–196  ·  view source on GitHub ↗

Equal returns true when the two vectors are equivalent.

(b Vector)

Source from the content-addressed store, hash-verified

192
193// Equal returns true when the two vectors are equivalent.
194func (v Vector) Equal(b Vector) bool {
195 return v.Compare(b) == Equal
196}
197
198// LesserEqual returns true when the two vectors are equivalent or v is Lesser
199// than b.

Callers 14

TestWriteCompressedFunction · 0.45
TestLZ4CompressionFunction · 0.45
TestLZ4CompressionUpdateFunction · 0.45
TestEnDecryptBytesFunction · 0.45
TestEnDecryptFileInfoFunction · 0.45
InConflictWithMethod · 0.45
isEquivalentMethod · 0.45
ModTimeEqualFunction · 0.45
BlocksEqualMethod · 0.45
IsEmptyMethod · 0.45
blocksEqualFunction · 0.45
xattrsEqualFunction · 0.45

Calls 1

CompareMethod · 0.95

Tested by 6

TestWriteCompressedFunction · 0.36
TestLZ4CompressionFunction · 0.36
TestLZ4CompressionUpdateFunction · 0.36
TestEnDecryptBytesFunction · 0.36
TestEnDecryptFileInfoFunction · 0.36
TestCompareFunction · 0.36