MCPcopy
hub / github.com/prometheus/client_golang / stringToLines

Function stringToLines

prometheus/graphite/bridge_test.go:339–346  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

337}
338
339func 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
348func TestPush(t *testing.T) {
349 reg := prometheus.NewRegistry()

Callers 1

checkLinesAreEqualFunction · 0.85

Calls 1

ErrMethod · 0.80

Tested by

no test coverage detected