MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / wrapProcessEvent

Function wrapProcessEvent

pkg/rules/engine_test.go:109–115  ·  view source on GitHub ↗
(e *event.Event, fn func(*event.Event) (bool, error))

Source from the content-addressed store, hash-verified

107}
108
109func wrapProcessEvent(e *event.Event, fn func(*event.Event) (bool, error)) bool {
110 match, err := fn(e)
111 if err != nil {
112 panic(err)
113 }
114 return match
115}
116
117func fireRules(t *testing.T, c *config.Config) bool {
118 e := NewEngine(new(ps.SnapshotterMock), c)

Callers 6

fireRulesFunction · 0.85
TestRunSequenceRuleFunction · 0.85
TestAlertActionFunction · 0.85
TestKillActionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected