File: main.go

package info (click to toggle)
golang-github-tdewolff-minify 2.20.37-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 39,388 kB
  • sloc: javascript: 394,644; xml: 25,649; ansic: 253; makefile: 108; python: 108; sh: 47
file content (16 lines) | stat: -rw-r--r-- 338 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// +build gofuzz

package fuzz

import (
	"github.com/tdewolff/parse/v2"
	"github.com/tdewolff/minify/v2/svg"
)

// Fuzz is a fuzz test.
func Fuzz(data []byte) int {
	pathDataBuffer := svg.NewPathData(&svg.Minifier{})
	data = parse.Copy(data) // ignore const-input error for OSS-Fuzz
	_ = pathDataBuffer.ShortenPathData(data)
	return 1
}