package analysis import "testing" func TestSanitizeLine(t *testing.T) { got := sanitizeLine(" error\nwith\rspaces ") if got != "error with spaces" { t.Fatalf("got %q", got) } }