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

Function TestExprEmpty

src/go/pkg/selectorcore/expr_test.go:12–16  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func TestExprEmpty(t *testing.T) {
13 assert.True(t, Expr{}.Empty())
14 assert.False(t, Expr{Allow: []string{"foo"}}.Empty())
15 assert.False(t, Expr{Deny: []string{"foo"}}.Empty())
16}
17
18func TestExprParseScenarios(t *testing.T) {
19 tests := map[string]struct {

Callers

nothing calls this directly

Calls 1

EmptyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…