summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/prometheus/procfs/stat_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/prometheus/procfs/stat_test.go')
-rw-r--r--vendor/github.com/prometheus/procfs/stat_test.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/vendor/github.com/prometheus/procfs/stat_test.go b/vendor/github.com/prometheus/procfs/stat_test.go
new file mode 100644
index 000000000..6eb792478
--- /dev/null
+++ b/vendor/github.com/prometheus/procfs/stat_test.go
@@ -0,0 +1,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)
+ }
+}