Skip to content

Commit 18a11fc

Browse files
author
Matt Bernier
authored
Merge pull request #53 from gabrielclima/master
Check some repo files
2 parents 78ef15f + 65ad81b commit 18a11fc

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

smtpapi_test.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package smtpapi
33
import (
44
"encoding/json"
55
"io/ioutil"
6+
"os"
67
"reflect"
78
"regexp"
89
"strconv"
@@ -377,6 +378,19 @@ func TestMarshalUnmarshall(t *testing.T) {
377378
}
378379
}
379380

381+
func TestRepoFiles(t *testing.T) {
382+
files := []string{"docker/Dockerfile", "docker/docker-compose.yml", ".env_sample",
383+
".gitignore", ".travis.yml", ".codeclimate.yml", "CHANGELOG.md", "CODE_OF_CONDUCT.md",
384+
"CONTRIBUTING.md", ".github/ISSUE_TEMPLATE", "LICENSE.txt", ".github/PULL_REQUEST_TEMPLATE",
385+
"README.md", "TROUBLESHOOTING.md", "USAGE.md", "USE_CASES.md"}
386+
387+
for _, file := range files {
388+
if _, err := os.Stat(file); os.IsNotExist(err) {
389+
t.Errorf("Repo file does not exist: %v", file)
390+
}
391+
}
392+
}
393+
380394
func TestLicenceDate(t *testing.T) {
381395
b, err := ioutil.ReadFile("./LICENSE.txt")
382396

0 commit comments

Comments
 (0)