tianji/reporter/utils/utils_test.go
2024-05-18 00:33:55 +08:00

21 lines
364 B
Go

package utils
import (
"fmt"
"github.com/stretchr/testify/assert"
"testing"
)
func TestGetPayload(t *testing.T) {
payload := GetReportDataPaylod(5, false)
fmt.Println("{}", payload)
}
func TestGetDockerStat(t *testing.T) {
dockerPayloads, err := GetDockerStat()
assert.NoError(t, err, "Should can get docker stat")
fmt.Println("{}", dockerPayloads)
}