1// +build fuzz
2
3// fuzz test data is stored in Amazon S3.
4package ini_test
5
6import (
7	"path/filepath"
8	"testing"
9
10	"github.com/aws/aws-sdk-go/internal/ini"
11)
12
13// TestFuzz is used to test for crashes and not validity of the input
14func TestFuzz(t *testing.T) {
15	paths, err := filepath.Glob("testdata/fuzz/*")
16	if err != nil {
17		t.Errorf("expected no error, but received %v", err)
18	}
19
20	if paths == nil {
21		t.Errorf("expected fuzz files, but received none")
22	}
23
24	for _, path := range paths {
25		t.Run(path, func(t *testing.T) {
26			ini.OpenFile(path)
27		})
28	}
29}
30