You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
clair/vendor/github.com/prometheus/procfs/stat_test.go

15 lines
258 B

package procfs
import "testing"
func TestStat(t *testing.T) {
s, err := FS("fixtures").NewStat()
if err != nil {
t.Fatal(err)
}
if want, have := int64(1418183276), s.BootTime; want != have {
t.Errorf("want boot time %d, have %d", want, have)
}
}