(t *testing.T)
| 26 | ) |
| 27 | |
| 28 | func TestNewTextParser(t *testing.T) { |
| 29 | p := NewTextParser(model.UTF8Validation) |
| 30 | if p.scheme != model.UTF8Validation { |
| 31 | t.Errorf("expected NewTextParser to return a TextParser with scheme %s - got %s", model.UTF8Validation, p.scheme) |
| 32 | } |
| 33 | |
| 34 | p = NewTextParser(model.LegacyValidation) |
| 35 | if p.scheme != model.LegacyValidation { |
| 36 | t.Errorf("expected NewTextParser to return a TextParser with scheme %s - got %s", model.LegacyValidation, p.scheme) |
| 37 | } |
| 38 | |
| 39 | p = NewTextParser(model.UnsetValidation) |
| 40 | if p.scheme != model.UnsetValidation { |
| 41 | t.Errorf("expected NewTextParser to return a TextParser with scheme %s - got %s", model.UnsetValidation, p.scheme) |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | func testTextParse(t testing.TB) { |
| 46 | scenarios := []struct { |
nothing calls this directly
no test coverage detected