Add more unit tests

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

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

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",