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

Method addField

pkg/filter/filter.go:521–528  ·  view source on GitHub ↗

addField appends a new field to the filter fields list.

(field *ql.FieldLiteral)

Source from the content-addressed store, hash-verified

519
520// addField appends a new field to the filter fields list.
521func (f *filter) addField(field *ql.FieldLiteral) {
522 for _, f := range f.fields {
523 if f.String() == field.String() {
524 return
525 }
526 }
527 f.fields = append(f.fields, Field{Value: field.Value, Name: field.Field, Arg: field.Arg})
528}
529
530// addStringFields appends values for all string field expressions.
531func (f *filter) addStringFields(field fields.Field, expr ql.Expr) {

Callers 1

CompileMethod · 0.95

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected