(t *testing.T)
| 27 | } |
| 28 | |
| 29 | func 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 | |
| 41 | func TestPhrase(t *testing.T) { |
| 42 | rawToPrepped := map[string]bool{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…