package status

import (
	"fmt"
	"testing"
	"time"
	"wdd.io/agent-go/utils"
)

func TestConvertToFormat(t *testing.T) {

	convertToFormat := ConvertToFormat(99.92)

	fmt.Println(convertToFormat)
}

func TestReportAppStatus(t *testing.T) {

	startTime := time.Now()
	agentStatus := ReportAgentMetric()

	endTime := time.Now()
	elapsedTime := endTime.Sub(startTime)
	fmt.Println("函数执行时间:", elapsedTime)

	utils.BeautifulPrint(agentStatus)
}

func TestReportAgentInfo(t *testing.T) {
	startTime := time.Now()
	agentInfo := ReportAgentInfo()

	endTime := time.Now()
	elapsedTime := endTime.Sub(startTime)
	fmt.Println("函数执行时间:", elapsedTime)

	utils.BeautifulPrint(agentInfo)
}
