isScoped determines if this filter is scoped, i.e. it has the event name or category conditions.
()
| 109 | // isScoped determines if this filter is scoped, i.e. it has the event name or category |
| 110 | // conditions. |
| 111 | func (f *compiledFilter) isScoped() bool { |
| 112 | for name := range f.filter.GetStringFields() { |
| 113 | if name == fields.EvtName || name == fields.EvtCategory { |
| 114 | return true |
| 115 | } |
| 116 | } |
| 117 | return false |
| 118 | } |
| 119 | |
| 120 | func (f *compiledFilter) isSequence() bool { |
| 121 | return f.ss != nil |
no test coverage detected