MCPcopy
hub / github.com/rclone/rclone / TestInternalObjNotFound

Function TestInternalObjNotFound

backend/cache/cache_internal_test.go:255–262  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

253}
254
255func TestInternalObjNotFound(t *testing.T) {
256 id := fmt.Sprintf("tionf%v", time.Now().Unix())
257 rootFs, _ := runInstance.newCacheFs(t, remoteName, id, false, true, nil)
258
259 obj, err := rootFs.NewObject(context.Background(), "404")
260 require.Error(t, err)
261 require.Nil(t, obj)
262}
263
264func TestInternalCachedWrittenContentMatches(t *testing.T) {
265 testy.SkipUnreliable(t)

Callers

nothing calls this directly

Calls 3

newCacheFsMethod · 0.80
NewObjectMethod · 0.65
ErrorMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…