func jsonFilesInDir(t *testing.T, dir string) []string {
	t.Helper()

	files := make([]string, 0)

	entries, err := ioutil.ReadDir(dir)
	assert.Nil(t, err, "unable to read json file: %v", err)

	for _, entry := range entries {
		if entry.IsDir() || path.Ext(entry.Name()) != ".json" {
			continue
		}

		files = append(files, entry.Name())
	}

	return files
}
// generate a slice of all JSON file names in a directory
generate a slice of all JSON file names in a directory
// generate a slice of all JSON file names in a directory
func jsonFilesInDir(t *testing.T, dir string) []string {
	t.Helper()
	files := make([]string, 0)
	entries, err := ioutil.ReadDir(dir)
	assert.Nil(t, err, "unable to read json file: %v", err)
	for _, entry := range entries {
		if entry.IsDir() || path.Ext(entry.Name()) != ".json" {
			continue
		}
		files = append(files, entry.Name())
	}
	return files
}
func jsonFilesInDir ( t * testing . T , dir string ) [ ] string { t . Helper ( ) files := make ( [ ] string , 0 ) entries , err := ioutil . ReadDir ( dir ) assert . Nil ( t , err , " " , err ) for _ , entry := range entries { if entry . IsDir ( ) || path . Ext ( entry . Name ( ) ) != " " { continue } files = append ( files , entry . Name ( ) ) } return files }
generate a slice of all JSON file names in a directory
generate a slice of all JSON file names in a directory