MCPcopy
hub / github.com/netdata/netdata / newTestFn

Function newTestFn

src/go/plugin/framework/dyncfg/handler_test.go:151–161  ·  view source on GitHub ↗
(id, cmd, name string, payload []byte)

Source from the content-addressed store, hash-verified

149}
150
151func newTestFn(id, cmd, name string, payload []byte) Function {
152 args := []string{id, cmd}
153 if name != "" {
154 args = append(args, name)
155 }
156 return NewFunction(functions.Function{
157 UID: "test-uid",
158 Args: args,
159 Payload: payload,
160 })
161}
162
163func TestHandler_WaitForDecision_MatchingEnableClearsWait(t *testing.T) {
164 cb := &mockCallbacks{}

Calls 1

NewFunctionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…