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

Function init

federationapi/routing/send_test.go:38–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36)
37
38func init() {
39 for _, j := range testData {
40 e, err := gomatrixserverlib.NewEventFromTrustedJSON(j, false, testRoomVersion)
41 if err != nil {
42 panic("cannot load test data: " + err.Error())
43 }
44 h := e.Headered(testRoomVersion)
45 testEvents = append(testEvents, h)
46 if e.StateKey() != nil {
47 testStateEvents[gomatrixserverlib.StateKeyTuple{
48 EventType: e.Type(),
49 StateKey: *e.StateKey(),
50 }] = h
51 }
52 }
53}
54
55type testRoomserverAPI struct {
56 api.RoomserverInternalAPITrace

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected