package status

import (
	"encoding/json"
	"fmt"
	"testing"
)

func TestGetCPUStatus(t *testing.T) {
	cpuStatus, err := GetCPUMetric()
	if err != nil {
		return
	}

	marshalIndent, err := json.MarshalIndent(cpuStatus, "", "  ")
	if err != nil {
		fmt.Printf("error")
	}

	fmt.Println(string(marshalIndent))

}

func TestGetCPUInfo(t *testing.T) {
	cpuInfo, err := GetCPUInfo()
	if err != nil {
		return
	}

	marshalIndent, err := json.MarshalIndent(cpuInfo, "", "  ")
	if err != nil {
		fmt.Printf("error")
	}

	fmt.Println(string(marshalIndent))
}
