MCPcopy
hub / github.com/google/go-cmp / Less

Method Less

cmp/compare_test.go:2693–2693  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

2691
2692func (gs germSorter) Len() int { return len(gs) }
2693func (gs germSorter) Less(i, j int) bool { return gs[i].String() < gs[j].String() }
2694func (gs germSorter) Swap(i, j int) { gs[i], gs[j] = gs[j], gs[i] }
2695
2696func project2Tests() []test {

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected