added generate function to the ClI

This commit is contained in:
2021-08-27 14:01:06 +04:00
parent e5334cbd3c
commit 85bf56ec01
5 changed files with 111 additions and 30 deletions

View File

@@ -1,6 +1,7 @@
package config
import (
"fmt"
"testing"
)
@@ -17,3 +18,21 @@ func TestSetDefaults(t *testing.T) {
t.Error(err)
}
}
func TestGetCurrentPath(t *testing.T) {
path, err := GetCurrentPath()
if err != nil {
fmt.Println(err)
t.Error(err)
}
fmt.Println(path)
}
func TestGetPathP2PRC(t *testing.T) {
path, err := GetPathP2PRC()
if err != nil {
fmt.Println(err)
t.Error(err)
}
fmt.Println(path)
}