package status

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

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)
}
