1
0
mirror of https://github.com/strongdm/comply synced 2025-12-06 06:14:09 +00:00

Add tests (#48)

This commit is contained in:
Rodolfo Campos
2021-10-12 12:14:30 +02:00
parent 53a65f6c00
commit 1c80e1ce66
5 changed files with 183 additions and 12 deletions

View File

@@ -82,7 +82,7 @@ func Exists() bool {
}
// Config is the parsed contents of ProjectRoot()/config.yml.
func Config() *Project {
var Config = func() *Project {
p := Project{}
cfgBytes, err := ioutil.ReadFile(filepath.Join(ProjectRoot(), "comply.yml"))
if err != nil {