27 lines
363 B
Go
27 lines
363 B
Go
package status
|
|
|
|
import (
|
|
"encoding/json"
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func TestConvertToFormat(t *testing.T) {
|
|
|
|
convertToFormat := ConvertToFormat(99.92)
|
|
|
|
fmt.Println(convertToFormat)
|
|
}
|
|
|
|
func TestReportAppStatus(t *testing.T) {
|
|
|
|
agentStatus := ReportAppStatus()
|
|
|
|
marshal, err := json.Marshal(agentStatus)
|
|
if err != nil {
|
|
return
|
|
}
|
|
|
|
fmt.Printf(string(marshal))
|
|
}
|