- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for removeCommonLines (0.11 sec)
-
src/net/http/client_test.go
log.Unlock() got = strings.TrimSpace(got) want = strings.TrimSpace(want) if got != want { got, want, lines := removeCommonLines(got, want) t.Errorf("Log differs after %d common lines.\n\nGot:\n%s\n\nWant:\n%s\n", lines, got, want) } } func removeCommonLines(a, b string) (asuffix, bsuffix string, commonLines int) { for { nl := strings.IndexByte(a, '\n') if nl < 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:30:50 UTC 2024 - 63.8K bytes - Viewed (0)