createTestSession creates a session for a user, returns plaintext session token.
(db *gorm.DB, userID string)
| 38 | |
| 39 | // createTestSession creates a session for a user, returns plaintext session token. |
| 40 | func createTestSession(db *gorm.DB, userID string) string { |
| 41 | sessionID, err := auth.CreateSession(db, userID, "") |
| 42 | Expect(err).ToNot(HaveOccurred()) |
| 43 | return sessionID |
| 44 | } |
| 45 | |
| 46 | var testIDCounter int |
| 47 |
no test coverage detected