mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-16 14:27:01 +00:00
test: Add the embedded aliases file to the fuzz corpus
This patch adds the embedded aliases file to the fuzz corpus, because it is trivial to do so, and is a reasonable seed which will be naturally adjusted over time as the package evolves (as it happened in recent commits).
This commit is contained in:
@@ -606,6 +606,7 @@ func FuzzReader(f *testing.F) {
|
||||
resolver.AddDomain("domain")
|
||||
resolver.DropChars = "."
|
||||
resolver.SuffixSep = "-+"
|
||||
f.Add([]byte(richFileContents))
|
||||
f.Fuzz(func(t *testing.T, data []byte) {
|
||||
resolver.parseReader("domain", bytes.NewReader(data))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user