diff --git a/CHANGELOG.md b/CHANGELOG.md index bb402d3..9256f7e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 1.0.1 + +### Fixes +- Return empty slice for `missing_tests` + + ## 1.0.0 FEATURES: diff --git a/internal/provider/examples_validation_data_source.go b/internal/provider/examples_validation_data_source.go index 85253e9..c9cb23f 100644 --- a/internal/provider/examples_validation_data_source.go +++ b/internal/provider/examples_validation_data_source.go @@ -120,7 +120,7 @@ func findMissingTests(examplesDirectory string, testsDirectory string, filter st var sourceFilter = `source = "./examples` var examples []string var tests []string - var missing []string + var missing []string = []string{} files, err := os.ReadDir(examplesDirectory) if err != nil { @@ -129,7 +129,6 @@ func findMissingTests(examplesDirectory string, testsDirectory string, filter st for _, file := range files { if file.IsDir() { - // tflog.Info(ctx, file.Name()) examples = append(examples, file.Name()) } }