[agent-go] [status] basically accomplished the status module - 1
This commit is contained in:
19
agent-go/status/Status_test.go
Normal file
19
agent-go/status/Status_test.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package status
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestReportAppStatus(t *testing.T) {
|
||||
|
||||
agentStatus := ReportAppStatus()
|
||||
|
||||
marshal, err := json.Marshal(agentStatus)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Printf(string(marshal))
|
||||
}
|
||||
Reference in New Issue
Block a user