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

Function mustEventFromJSON

internal/pushrules/evaluate_test.go:183–189  ·  view source on GitHub ↗
(t *testing.T, json string)

Source from the content-addressed store, hash-verified

181}
182
183func 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}

Callers 4

TestRuleMatchesFunction · 0.85
TestConditionMatchesFunction · 0.85
TestPatternMatchesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected