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

Method Validate

pkg/filter/fields/fields.go:62–67  ·  view source on GitHub ↗

Validate validates the provided field argument.

(v string)

Source from the content-addressed store, hash-verified

60
61// Validate validates the provided field argument.
62func (a *Argument) Validate(v string) bool {
63 if a.ValidationFunc == nil {
64 return true
65 }
66 return a.ValidationFunc(v)
67}
68
69// IsDeprecated determines if the field is deprecated.
70func (f FieldInfo) IsDeprecated() bool { return f.Deprecation != nil }

Callers 1

parseFieldMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected