MCPcopy Create free account
hub / github.com/SeeFlowerX/stackplz / GetFilterByName

Method GetFilterByName

user/config/config_filter.go:84–91  ·  view source on GitHub ↗
(filter_name string)

Source from the content-addressed store, hash-verified

82}
83
84func (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
93func (this *FilterHelper) GetFilterIndex(filter string) uint32 {
94 arg_filter := this.GetFilterByName(filter)

Callers 2

GetFilterIndexMethod · 0.95
GetFilterByNameFunction · 0.80

Calls 1

MatchMethod · 0.80

Tested by

no test coverage detected