()
| 46 | } |
| 47 | |
| 48 | func (s *SvgTestSuite) TestSanitize() { |
| 49 | origin := s.readTestFile("test1.svg") |
| 50 | expected := s.readTestFile("test1.sanitized.svg") |
| 51 | |
| 52 | config := svg.NewDefaultConfig() |
| 53 | svgProc := svg.New(&config) |
| 54 | |
| 55 | actual, err := svgProc.Process(options.New(), origin) |
| 56 | s.Require().NoError(err) |
| 57 | |
| 58 | s.compare(expected, actual) |
| 59 | } |
| 60 | |
| 61 | func TestSvg(t *testing.T) { |
| 62 | suite.Run(t, new(SvgTestSuite)) |
nothing calls this directly
no test coverage detected