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

Function IsDeprecated

pkg/filter/fields/fields.go:91–98  ·  view source on GitHub ↗

IsDeprecated determines if the given field is deprecated.

(f Field)

Source from the content-addressed store, hash-verified

89
90// IsDeprecated determines if the given field is deprecated.
91func IsDeprecated(f Field) (bool, *Deprecation) {
92 for _, field := range fields {
93 if field.Field == f && field.IsDeprecated() {
94 return true, field.Deprecation
95 }
96 }
97 return false, nil
98}
99
100// IsBoolean determines if the given field has the bool type.
101func IsBoolean(f Field) bool {

Callers 3

compileMethod · 0.92
validateRulesFunction · 0.92
TestIsDeprecatedFunction · 0.85

Calls 1

IsDeprecatedMethod · 0.80

Tested by 1

TestIsDeprecatedFunction · 0.68