createSession creates a session with standard tools and registers it.
(t *testing.T, mgr *sessions.Manager, b *Bridge, key, ua string)
| 37 | |
| 38 | // createSession creates a session with standard tools and registers it. |
| 39 | func createSession(t *testing.T, mgr *sessions.Manager, b *Bridge, key, ua string) *sessions.Session { |
| 40 | t.Helper() |
| 41 | sess := mgr.Touch(key, ua, "claude", "") |
| 42 | sess.RecordToolsDirect(testClaudeTools) |
| 43 | b.registered.Store(sess.ID, true) |
| 44 | b.notifySessionReady(sess.ID) |
| 45 | b.taskManager.StartSessionListener(sess.ID) |
| 46 | return sess |
| 47 | } |
| 48 | |
| 49 | // verifyDownloadResponse checks content byte-for-byte, size, and checksum. |
| 50 | func verifyDownloadResponse(t *testing.T, dl *implantpb.DownloadResponse, originalData []byte) { |
no test coverage detected