(t *testing.T)
| 95 | } |
| 96 | |
| 97 | func 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 | |
| 105 | func TestWriteOutboxRow_RejectsEmptyType(t *testing.T) { |
| 106 | fe := &fakeExec{} |
nothing calls this directly
no test coverage detected