(filter_name string)
| 82 | } |
| 83 | |
| 84 | func (this *FilterHelper) GetFilterByName(filter_name string) ArgFilter { |
| 85 | for _, f := range this.filters { |
| 86 | if f.Match(filter_name) { |
| 87 | return f |
| 88 | } |
| 89 | } |
| 90 | panic(fmt.Sprintf("%s not match any filter", filter_name)) |
| 91 | } |
| 92 | |
| 93 | func (this *FilterHelper) GetFilterIndex(filter string) uint32 { |
| 94 | arg_filter := this.GetFilterByName(filter) |
no test coverage detected