test file for ios/dutils_linux.go placed here because it requires fs to set up the testing environment
(t *testing.T)
| 18 | // placed here because it requires fs to set up the testing environment |
| 19 | |
| 20 | func TestMountpathSearchValid(t *testing.T) { |
| 21 | TestNew(nil) |
| 22 | |
| 23 | mpath := "/tmp/abc" |
| 24 | createDirs(mpath) |
| 25 | defer removeDirs(mpath) |
| 26 | |
| 27 | oldMPs := setAvailableMountPaths(t, mpath) |
| 28 | mpathInfo, err := Path2Mpath("/tmp/abc/test") |
| 29 | tassert.Errorf(t, err == nil && mpathInfo.Path == mpath, "Actual: [%s]. Expected: [%s]", mpathInfo.Path, mpath) |
| 30 | setAvailableMountPaths(t, oldMPs...) |
| 31 | } |
| 32 | |
| 33 | func TestMountpathSearchInvalid(t *testing.T) { |
| 34 | TestNew(nil) |
nothing calls this directly
no test coverage detected