...

Source file src/github.com/moby/sys/mountinfo/mountinfo_test.go

Documentation: github.com/moby/sys/mountinfo

     1  //go:build !windows
     2  // +build !windows
     3  
     4  package mountinfo
     5  
     6  import "testing"
     7  
     8  func TestGetMounts(t *testing.T) {
     9  	mounts, err := GetMounts(nil)
    10  	if err != nil {
    11  		t.Fatal(err)
    12  	}
    13  
    14  	if len(mounts) < 2 {
    15  		t.Fatalf("should have at least two mounts, got %d: %+v", len(mounts), mounts)
    16  	}
    17  }
    18  

View as plain text