MCPcopy
hub / github.com/netdata/netdata / TestCmdAdd_NoPayload

Function TestCmdAdd_NoPayload

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

Source from the content-addressed store, hash-verified

494}
495
496func TestCmdAdd_NoPayload(t *testing.T) {
497 cb := &mockCallbacks{}
498 h := newTestHandler(cb)
499
500 fn := newTestFn("test:job1", "add", "job1", nil)
501 h.CmdAdd(fn)
502
503 assert.Equal(t, 0, h.exposed.Count())
504}
505
506func TestCmdAdd_InvalidJobName(t *testing.T) {
507 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…