增加service命令

This commit is contained in:
GoEdgeLab
2021-01-12 11:49:37 +08:00
parent 32cac3b71b
commit d27db90ea2
8 changed files with 593 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
package utils
import (
teaconst "github.com/TeaOSLab/EdgeAdmin/internal/const"
"testing"
)
func TestServiceManager_Log(t *testing.T) {
manager := NewServiceManager(teaconst.ProductName, teaconst.ProductName+" Server")
manager.Log("Hello, World")
manager.LogError("Hello, World")
}