(fromFiles ...string)
| 82 | } |
| 83 | |
| 84 | func 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 | |
| 103 | func compileRules(t *testing.T, e *Engine) { |
| 104 | rs, err := e.Compile() |
no outgoing calls
no test coverage detected