mirror of
https://github.com/Luzifer/promcertcheck.git
synced 2024-11-14 02:32:43 +00:00
20 lines
308 B
Go
20 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)
|
||
|
}
|
||
|
}
|