20 lines
244 B
Go
20 lines
244 B
Go
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))
|
|
}
|