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

Function tokstr

pkg/filter/ql/token.go:192–197  ·  view source on GitHub ↗
(tok token, lit string)

Source from the content-addressed store, hash-verified

190}
191
192func tokstr(tok token, lit string) string {
193 if lit != "" {
194 return lit
195 }
196 return tok.String()
197}
198
199// lookup returns the token associated with a given string.
200func lookup(id string) (token, string) {

Callers 7

ParseSequenceMethod · 0.85
ParseExprMethod · 0.85
parseUnaryExprMethod · 0.85
parseFieldMethod · 0.85
parseListMethod · 0.85
parseFunctionMethod · 0.85
parseDurationMethod · 0.85

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected