1
0
mirror of https://github.com/strongdm/comply synced 2025-12-08 07: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

@@ -16,22 +16,22 @@ type File struct {
}
// Standards lists all standard files.
func Standards() ([]File, error) {
var Standards = func() ([]File, error) {
return filesFor("standards", "yml")
}
// Narratives lists all narrative files.
func Narratives() ([]File, error) {
var Narratives = func() ([]File, error) {
return filesFor("narratives", "md")
}
// Policies lists all policy files.
func Policies() ([]File, error) {
var Policies = func() ([]File, error) {
return filesFor("policies", "md")
}
// Procedures lists all procedure files.
func Procedures() ([]File, error) {
var Procedures = func() ([]File, error) {
return filesFor("procedures", "md")
}