(i, j int)
| 199 | } |
| 200 | |
| 201 | func (l LabelPairs) Less(i, j int) bool { |
| 202 | switch { |
| 203 | case l[i].Name > l[j].Name: |
| 204 | return false |
| 205 | case l[i].Name < l[j].Name: |
| 206 | return true |
| 207 | case l[i].Value > l[j].Value: |
| 208 | return false |
| 209 | case l[i].Value < l[j].Value: |
| 210 | return true |
| 211 | default: |
| 212 | return false |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | func (l LabelPairs) Swap(i, j int) { |
| 217 | l[i], l[j] = l[j], l[i] |
nothing calls this directly
no outgoing calls
no test coverage detected