File: mountinfo_test.go

package info (click to toggle)
golang-github-moby-sys 0.0~git20220606.416188a-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports
  • size: 444 kB
  • sloc: makefile: 55
file content (17 lines) | stat: -rw-r--r-- 286 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//go:build !windows
// +build !windows

package mountinfo

import "testing"

func TestGetMounts(t *testing.T) {
	mounts, err := GetMounts(nil)
	if err != nil {
		t.Fatal(err)
	}

	if len(mounts) < 2 {
		t.Fatalf("should have at least two mounts, got %d: %+v", len(mounts), mounts)
	}
}