增加service命令

This commit is contained in:
刘祥超
2021-01-12 11:49:14 +08:00
parent 5491cb6569
commit 42e0103b86
9 changed files with 594 additions and 3 deletions

View File

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