(t *testing.T)
| 174 | } |
| 175 | |
| 176 | func TestSortIndexInto(t *testing.T) { |
| 177 | keys := []*Constant{&fooName, &barString, &fooBarPair} |
| 178 | index := make([]int, len(keys)) |
| 179 | SortIndexInto(keys, index) |
| 180 | want := []int{2, 1, 0} |
| 181 | if !cmp.Equal(index, want) { |
| 182 | t.Errorf("SortIndexInto(%v) got %v want %v", keys, index, want) |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | func TestEqualsNegative(t *testing.T) { |
| 187 | tests := []struct { |
nothing calls this directly
no test coverage detected