MCPcopy Create free account
hub / github.com/vale-cli/vale / TestPrepText

Function TestPrepText

internal/core/util_test.go:29–39  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

27}
28
29func TestPrepText(t *testing.T) {
30 rawToPrepped := map[string]string{
31 "foo\r\nbar": "foo\nbar",
32 "foo\r\n\r\nbar": "foo\n\nbar",
33 }
34 for raw, prepped := range rawToPrepped {
35 if prepped != Sanitize(raw) {
36 t.Errorf("expected = %v, got = %v", prepped, Sanitize(raw))
37 }
38 }
39}
40
41func TestPhrase(t *testing.T) {
42 rawToPrepped := map[string]bool{

Callers

nothing calls this directly

Calls 1

SanitizeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…