MCPcopy Index your code
hub / github.com/netdata/netdata / Empty

Method Empty

src/go/pkg/selectorcore/expr.go:13–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11}
12
13func (e Expr) Empty() bool {
14 return len(e.Allow) == 0 && len(e.Deny) == 0
15}
16
17func (e Expr) Parse() (Selector, error) {
18 if e.Empty() {

Callers 4

ParseMethod · 0.95
TestColumnSet_EmptyFunction · 0.45
TestExprEmptyFunction · 0.45
TestNewHTTPRequestFunction · 0.45

Implementers 8

CSVParsersrc/go/plugin/go.d/pkg/logs/csv.go
LTSVParsersrc/go/plugin/go.d/pkg/logs/ltsv.go
JSONParsersrc/go/plugin/go.d/pkg/logs/json.go
RegExpParsersrc/go/plugin/go.d/pkg/logs/regexp.go
SimpleExprsrc/go/pkg/matcher/expr.go
Exprsrc/go/pkg/prometheus/selector/expr.go
Exprsrc/go/pkg/selectorcore/expr.go
Exprsrc/go/pkg/metrix/selector/expr.go

Calls

no outgoing calls

Tested by 3

TestColumnSet_EmptyFunction · 0.36
TestExprEmptyFunction · 0.36
TestNewHTTPRequestFunction · 0.36