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

Function TestNewSession

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

Source from the content-addressed store, hash-verified

10)
11
12func TestNewSession(t *testing.T) {
13 s, err := NewSession()
14 require.NoError(t, err)
15 defer s.Cleanup()
16
17 assert.DirExists(t, s.TempDir())
18 assert.Contains(t, s.TempDir(), "hbd-")
19}
20
21func TestSession_Cleanup(t *testing.T) {
22 s, err := NewSession()

Callers

nothing calls this directly

Calls 3

CleanupMethod · 0.95
TempDirMethod · 0.95
NewSessionFunction · 0.85

Tested by

no test coverage detected