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

Function newConfig

pkg/rules/engine_test.go:84–101  ·  view source on GitHub ↗
(fromFiles ...string)

Source from the content-addressed store, hash-verified

82}
83
84func newConfig(fromFiles ...string) *config.Config {
85 c := &config.Config{
86 EventSource: config.EventSourceConfig{
87 EnableHandleEvents: true,
88 EnableNetEvents: true,
89 EnableRegistryEvents: true,
90 EnableFileIOEvents: true,
91 EnableModuleEvents: true,
92 EnableThreadEvents: true,
93 },
94 Filters: &config.Filters{
95 Rules: config.Rules{
96 FromPaths: fromFiles,
97 },
98 },
99 }
100 return c
101}
102
103func compileRules(t *testing.T, e *Engine) {
104 rs, err := e.Compile()

Callers 11

TestRunSimpleRulesFunction · 0.85
TestRunSequenceRuleFunction · 0.85
TestAlertActionFunction · 0.85
TestKillActionFunction · 0.85
BenchmarkRunRulesFunction · 0.85
TestCompileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected