MCPcopy Index your code
hub / github.com/coder/coder / Difference

Method Difference

coderd/database/pglocks.go:115–119  ·  view source on GitHub ↗

Difference returns the difference between two sets of locks. This is helpful to determine what changed between the two sets.

(to PGLocks)

Source from the content-addressed store, hash-verified

113// Difference returns the difference between two sets of locks.
114// This is helpful to determine what changed between the two sets.
115func (l PGLocks) Difference(to PGLocks) (newVal PGLocks, removed PGLocks) {
116 return slice.SymmetricDifferenceFunc(l, to, func(a, b PGLock) bool {
117 return a.Equal(b)
118 })
119}

Callers

nothing calls this directly

Calls 2

SymmetricDifferenceFuncFunction · 0.92
EqualMethod · 0.45

Tested by

no test coverage detected