MCPcopy Index your code
hub / github.com/coder/coder / normalizeLineEndings

Function normalizeLineEndings

agent/unit/graph_test.go:90–94  ·  view source on GitHub ↗

normalizeLineEndings ensures that all line endings are normalized to \n. Required for Windows compatibility.

(content []byte)

Source from the content-addressed store, hash-verified

88// normalizeLineEndings ensures that all line endings are normalized to \n.
89// Required for Windows compatibility.
90func normalizeLineEndings(content []byte) []byte {
91 content = bytes.ReplaceAll(content, []byte("\r\n"), []byte("\n"))
92 content = bytes.ReplaceAll(content, []byte("\r"), []byte("\n"))
93 return content
94}
95
96func TestGraph(t *testing.T) {
97 t.Parallel()

Callers 1

assertDOTGraphFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected