Add more unit tests

This commit is contained in:
Jamie Curnow committed 2023-07-28 15:01:54 +10:00
1 parent 7f9a1f5a98
commit e5ade3b4ea
11 files changed
+162 -83

No files matched your search

-2
View File
@@ -19,8 +19,6 @@ func Init(version, commit *string) {
}
initLogger()
logger.Info("Build Version: %s (%s)", Version, Commit)
createDataFolders()
}
// InitIPRanges will initialise the config for the ipranges command
+2 -2
View File
@@ -6,9 +6,9 @@ import (
"os"
)
// createDataFolders will recursively create these folders within the
// CreateDataFolders will recursively create these folders within the
// data folder defined in configuration.
func createDataFolders() {
func CreateDataFolders() {
folders := []string{
"access",
"certificates",