MCPcopy
hub / github.com/moonD4rk/HackBrowserData / TestSession_Acquire_NotFound

Function TestSession_Acquire_NotFound

filemanager/session_test.go:95–103  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

93}
94
95func TestSession_Acquire_NotFound(t *testing.T) {
96 s, err := NewSession()
97 require.NoError(t, err)
98 defer s.Cleanup()
99
100 dst := filepath.Join(s.TempDir(), "nope")
101 err = s.Acquire("/nonexistent/file", dst, false)
102 require.Error(t, err)
103}

Callers

nothing calls this directly

Calls 5

CleanupMethod · 0.95
TempDirMethod · 0.95
AcquireMethod · 0.95
NewSessionFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected