From 7eee7cac634708622eb2e1a5e0ed10a3cba77083 Mon Sep 17 00:00:00 2001 From: zeaslity Date: Fri, 14 Apr 2023 10:06:15 +0800 Subject: [PATCH] [agent-go] [status] basically accomplished the status module - 1 --- agent-go/status/Status_test.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 agent-go/status/Status_test.go diff --git a/agent-go/status/Status_test.go b/agent-go/status/Status_test.go new file mode 100644 index 0000000..b041447 --- /dev/null +++ b/agent-go/status/Status_test.go @@ -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)) +}