blob: 40a510ad4fdc989d29a2bbf6cd68c635a8fde47f [file] [log] [blame]
package wire
import (
"io/ioutil"
"os"
"path/filepath"
"testing"
)
func Test(t *testing.T) {
dir, err := os.Open("corpus")
if err != nil {
t.Fatal(err)
}
infos, err := dir.Readdir(0)
if err != nil {
t.Fatal(err)
}
for _, info := range infos {
name := info.Name()
t.Run(name, func(t *testing.T) {
b, err := ioutil.ReadFile(filepath.Join("corpus", name))
if err != nil {
t.Fatal(err)
}
Fuzz(b)
})
}
}