(t *testing.T, store *storage.SQLiteStore, uuid string, email ParsedEmail, ts float64, project string)
| 37 | } |
| 38 | |
| 39 | func storeSMTPEvent(t *testing.T, store *storage.SQLiteStore, uuid string, email ParsedEmail, ts float64, project string) { |
| 40 | t.Helper() |
| 41 | payload, _ := json.Marshal(email) |
| 42 | ev := event.Event{ |
| 43 | UUID: uuid, |
| 44 | Type: "smtp", |
| 45 | Payload: payload, |
| 46 | Timestamp: ts, |
| 47 | Project: project, |
| 48 | } |
| 49 | if err := store.Store(context.Background(), ev); err != nil { |
| 50 | t.Fatal(err) |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | // TestSMTPAPI_Cursor verifies the cursor endpoint returns a valid RFC3339 time. |
| 55 | func TestSMTPAPI_Cursor(t *testing.T) { |
no test coverage detected