(s string)
| 337 | } |
| 338 | |
| 339 | func stringToLines(s string) (lines []string, err error) { |
| 340 | scanner := bufio.NewScanner(strings.NewReader(s)) |
| 341 | for scanner.Scan() { |
| 342 | lines = append(lines, scanner.Text()) |
| 343 | } |
| 344 | err = scanner.Err() |
| 345 | return |
| 346 | } |
| 347 | |
| 348 | func TestPush(t *testing.T) { |
| 349 | reg := prometheus.NewRegistry() |
no test coverage detected