(t *testing.T, json string)
| 181 | } |
| 182 | |
| 183 | func mustEventFromJSON(t *testing.T, json string) *gomatrixserverlib.Event { |
| 184 | ev, err := gomatrixserverlib.NewEventFromTrustedJSON([]byte(json), false, gomatrixserverlib.RoomVersionV7) |
| 185 | if err != nil { |
| 186 | t.Fatal(err) |
| 187 | } |
| 188 | return ev |
| 189 | } |
no outgoing calls
no test coverage detected