mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-04 18:51:17 +00:00
13 lines
183 B
Go
13 lines
183 B
Go
package linux
|
|
|
|
import "testing"
|
|
|
|
func TestCPUStat(t *testing.T) {
|
|
stat, err := ReadStat("proc/stat")
|
|
if err != nil {
|
|
t.Fatal("stat read fail")
|
|
}
|
|
_ = stat
|
|
t.Logf("%+v", stat)
|
|
}
|