MCPcopy
hub / github.com/sqlc-dev/sqlc / lineEndings

Function lineEndings

internal/endtoend/endtoend_test.go:24–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22)
23
24func lineEndings() cmp.Option {
25 return cmp.Transformer("LineEndings", func(in string) string {
26 // Replace Windows new lines with Unix newlines
27 return strings.Replace(in, "\r\n", "\n", -1)
28 })
29}
30
31func stderrTransformer() cmp.Option {
32 return cmp.Transformer("Stderr", func(in string) string {

Callers 1

cmpDirectoryFunction · 0.85

Calls 1

ReplaceMethod · 0.45

Tested by

no test coverage detected