normalizeLineEndings ensures that all line endings are normalized to \n. Required for Windows compatibility.
(content []byte)
| 88 | // normalizeLineEndings ensures that all line endings are normalized to \n. |
| 89 | // Required for Windows compatibility. |
| 90 | func 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 | |
| 96 | func TestGraph(t *testing.T) { |
| 97 | t.Parallel() |