File: stat_test.go

package info (click to toggle)
golang-procfs 0%2Bgit20161206.fcdb11c-1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 264 kB
  • sloc: makefile: 12
file content (14 lines) | stat: -rw-r--r-- 258 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)
	}
}