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

Function prepareObject

downloader/utils_test.go:95–110  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

93}
94
95func prepareObject(t *testing.T) *cluster.LOM {
96 out := tutils.PrepareObjects(t, tutils.ObjectsDesc{
97 CTs: []tutils.ContentTypeDesc{{
98 Type: fs.ObjectType,
99 ContentCnt: 1,
100 }},
101 MountpathsCnt: 1,
102 ObjectSize: 1024,
103 })
104 lom := &cluster.LOM{}
105 err := lom.InitFQN(out.FQNs[fs.ObjectType][0], &out.Bck)
106 tassert.CheckFatal(t, err)
107 err = lom.Load(false, false)
108 tassert.CheckFatal(t, err)
109 return lom
110}

Callers 1

TestCompareObjectFunction · 0.85

Calls 4

InitFQNMethod · 0.95
LoadMethod · 0.95
PrepareObjectsFunction · 0.92
CheckFatalFunction · 0.92

Tested by

no test coverage detected