MCPcopy Create free account
hub / github.com/daodst/chat / CreateAndInsert

Method CreateAndInsert

test/room.go:217–222  ·  view source on GitHub ↗
(t *testing.T, creator *User, eventType string, content interface{}, mods ...eventModifier)

Source from the content-addressed store, hash-verified

215}
216
217func (r *Room) CreateAndInsert(t *testing.T, creator *User, eventType string, content interface{}, mods ...eventModifier) *gomatrixserverlib.HeaderedEvent {
218 t.Helper()
219 he := r.CreateEvent(t, creator, eventType, content, mods...)
220 r.InsertEvent(t, he)
221 return he
222}
223
224// All room modifiers are below
225

Callers 4

Test_SharedUsersFunction · 0.95
insertCreateEventsMethod · 0.95
TestRecentEventsPDUFunction · 0.95

Calls 2

CreateEventMethod · 0.95
InsertEventMethod · 0.95

Tested by 3

Test_SharedUsersFunction · 0.76
TestRecentEventsPDUFunction · 0.76