MCPcopy
hub / github.com/uber-go/goleak / Less

Method Less

internal/stack/stacks_test.go:549–549  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

547
548func (ss byGoroutineID) Len() int { return len(ss) }
549func (ss byGoroutineID) Less(i, j int) bool { return ss[i].ID() < ss[j].ID() }
550func (ss byGoroutineID) Swap(i, j int) { ss[i], ss[j] = ss[j], ss[i] }
551
552// Note: This is the same logic as in ../../utils_test.go

Callers

nothing calls this directly

Calls 1

IDMethod · 0.80

Tested by

no test coverage detected