(t testing.TB)
| 55 | } |
| 56 | |
| 57 | func testLabelValues(t testing.TB) { |
| 58 | scenarios := []struct { |
| 59 | in LabelValues |
| 60 | out LabelValues |
| 61 | }{ |
| 62 | { |
| 63 | in: LabelValues{"ZZZ", "zzz"}, |
| 64 | out: LabelValues{"ZZZ", "zzz"}, |
| 65 | }, |
| 66 | { |
| 67 | in: LabelValues{"aaa", "AAA"}, |
| 68 | out: LabelValues{"AAA", "aaa"}, |
| 69 | }, |
| 70 | } |
| 71 | |
| 72 | for i, scenario := range scenarios { |
| 73 | sort.Sort(scenario.in) |
| 74 | |
| 75 | for j, expected := range scenario.out { |
| 76 | if expected != scenario.in[j] { |
| 77 | t.Errorf("%d.%d expected %s, got %s", i, j, expected, scenario.in[j]) |
| 78 | } |
| 79 | } |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | func TestLabelValues(t *testing.T) { |
| 84 | testLabelValues(t) |
no outgoing calls
no test coverage detected