(namesAndValues ...string)
| 134 | } |
| 135 | |
| 136 | func makeLabels(namesAndValues ...string) []*dto.LabelPair { |
| 137 | out := []*dto.LabelPair(nil) |
| 138 | |
| 139 | for i := 0; i+1 < len(namesAndValues); i = i + 2 { |
| 140 | out = append(out, &dto.LabelPair{ |
| 141 | Name: proto.String(namesAndValues[i]), |
| 142 | Value: proto.String(namesAndValues[i+1]), |
| 143 | }) |
| 144 | } |
| 145 | |
| 146 | return out |
| 147 | } |
| 148 | |
| 149 | // TestSendSumOfGaugesPerUserWithLabels tests to ensure multiple metrics for the same user with a matching label are |
| 150 | // summed correctly |
no test coverage detected