MCPcopy Index your code
hub / github.com/tailscale/tailscale / equalConciseHeader

Method equalConciseHeader

types/netmap/netmap.go:372–377  ·  view source on GitHub ↗

equalConciseHeader reports whether a and b are equal for the fields used by printConciseHeader.

(b *NetworkMap)

Source from the content-addressed store, hash-verified

370// equalConciseHeader reports whether a and b are equal for the fields
371// used by printConciseHeader.
372func (a *NetworkMap) equalConciseHeader(b *NetworkMap) bool {
373 return a.NodeKey == b.NodeKey &&
374 a.GetMachineStatus() == b.GetMachineStatus() &&
375 a.User() == b.User() &&
376 views.SliceEqual(a.GetAddresses(), b.GetAddresses())
377}
378
379// printPeerConcise appends to buf a line representing the peer p.
380//

Callers 1

ConciseDiffFromMethod · 0.80

Calls 5

GetMachineStatusMethod · 0.95
UserMethod · 0.95
GetAddressesMethod · 0.95
SliceEqualFunction · 0.92
UserMethod · 0.65

Tested by

no test coverage detected