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

Function IsField

pkg/filter/fields/fields_windows.go:1311–1316  ·  view source on GitHub ↗

IsField returns true if the provided string is a recognized field or pseudo field. Otherwise, it returns false.

(name string)

Source from the content-addressed store, hash-verified

1309// recognized field or pseudo field. Otherwise, it
1310// returns false.
1311func IsField(name string) bool {
1312 if _, ok := fields[Field(name)]; ok || IsPseudoField(Field(name)) {
1313 return true
1314 }
1315 return false
1316}

Callers 3

ParseSequenceMethod · 0.92
parseUnaryExprMethod · 0.92
TestIsFieldFunction · 0.85

Calls 2

IsPseudoFieldFunction · 0.85
FieldTypeAlias · 0.70

Tested by 1

TestIsFieldFunction · 0.68