MCPcopy
hub / github.com/NVIDIA/aistore / TestMountpathSearchValid

Function TestMountpathSearchValid

fs/dutils_test.go:20–31  ·  view source on GitHub ↗

test file for ios/dutils_linux.go placed here because it requires fs to set up the testing environment

(t *testing.T)

Source from the content-addressed store, hash-verified

18// placed here because it requires fs to set up the testing environment
19
20func 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
33func TestMountpathSearchInvalid(t *testing.T) {
34 TestNew(nil)

Callers

nothing calls this directly

Calls 6

ErrorfFunction · 0.92
TestNewFunction · 0.85
createDirsFunction · 0.85
removeDirsFunction · 0.85
setAvailableMountPathsFunction · 0.85
Path2MpathFunction · 0.85

Tested by

no test coverage detected