MCPcopy Create free account
hub / github.com/buggregator/server / storeSMTPEvent

Function storeSMTPEvent

modules/smtp/api_test.go:39–52  ·  view source on GitHub ↗
(t *testing.T, store *storage.SQLiteStore, uuid string, email ParsedEmail, ts float64, project string)

Source from the content-addressed store, hash-verified

37}
38
39func 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.
55func TestSMTPAPI_Cursor(t *testing.T) {

Callers 8

TestSMTPAPI_StatsFunction · 0.85
TestSMTPAPI_RawFunction · 0.85
TestSMTPAPI_LinksFunction · 0.85
TestSMTPAPI_CodesFunction · 0.85
TestSMTPAPI_DeleteFunction · 0.85
TestSMTPAPI_WaitFunction · 0.85

Calls 1

StoreMethod · 0.65

Tested by

no test coverage detected