MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / TestWriteOutboxRow_RejectsEmptyUserID

Function TestWriteOutboxRow_RejectsEmptyUserID

internal/webhookpub/outbox_test.go:97–103  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

95}
96
97func TestWriteOutboxRow_RejectsEmptyUserID(t *testing.T) {
98 fe := &fakeExec{}
99 err := writeOutboxRow(context.Background(), fe, Event{ID: "evt_abc", Type: "email.received"})
100 if err == nil {
101 t.Fatalf("expected error on empty UserID")
102 }
103}
104
105func TestWriteOutboxRow_RejectsEmptyType(t *testing.T) {
106 fe := &fakeExec{}

Callers

nothing calls this directly

Calls 1

writeOutboxRowFunction · 0.85

Tested by

no test coverage detected