mirror of
https://github.com/Luzifer/promcertcheck.git
synced 2024-11-10 08:50:04 +00:00
19 lines
308 B
Go
19 lines
308 B
Go
package procfs
|
|
|
|
import "testing"
|
|
|
|
func TestStat(t *testing.T) {
|
|
fs, err := NewFS("fixtures")
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
|
|
s, err := fs.NewStat()
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
|
|
if want, got := int64(1418183276), s.BootTime; want != got {
|
|
t.Errorf("want boot time %d, got %d", want, got)
|
|
}
|
|
}
|