Expand description
Event builders and in-memory stores for state-resolution tests and benchmarks.
The fixtures exercise authorization and resolution without a running server.
Modulesยง
- fetch ๐
Structsยง
- Test
Store - An in-memory fixture event store.
Staticsยง
- SERVER_
TIMESTAMP ๐
Functionsยง
- INITIAL_
EVENTS - Builds the common room state and membership fixture events.
- alice
- Returns the Alice fixture user.
- bob
- Returns the Bob fixture user.
- charlie
- Returns the Charlie fixture user.
- ella
- Returns the Ella fixture user.
- event_
id - Constructs a synthetic event identifier, preserving a supplied full identifier.
- event_
not_ ๐found - member_
content_ ban - Builds membership content for a banned user.
- member_
content_ join - Builds membership content for a joined user.
- room_id
- Returns the fixture room identifier.
- to_
pdu_ event - Builds a fixture PDU with synthetic identifiers and an increasing timestamp.