MCPcopy
hub / github.com/netdata/netdata / TestCmdAdd_InvalidArgs

Function TestCmdAdd_InvalidArgs

src/go/plugin/framework/dyncfg/handler_test.go:484–494  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

482}
483
484func TestCmdAdd_InvalidArgs(t *testing.T) {
485 cb := &mockCallbacks{}
486 h := newTestHandler(cb)
487
488 // Only 2 args (need 3).
489 fn := newTestFn("test:job1", "add", "", nil)
490 fn.fn.Args = fn.fn.Args[:2]
491 h.CmdAdd(fn)
492
493 assert.Equal(t, 0, h.exposed.Count())
494}
495
496func TestCmdAdd_NoPayload(t *testing.T) {
497 cb := &mockCallbacks{}

Callers

nothing calls this directly

Calls 5

newTestHandlerFunction · 0.85
newTestFnFunction · 0.85
CmdAddMethod · 0.80
EqualMethod · 0.80
CountMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…