MCPcopy
hub / github.com/netdata/netdata / TestSET

Function TestSET

src/go/pkg/netdataapi/api_test.go:127–136  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

125}
126
127func TestSET(t *testing.T) {
128 w := &bytes.Buffer{}
129 api := New(w)
130
131 api.SET("cpu_user", 42)
132
133 expected := "SET 'cpu_user' = 42\n"
134
135 require.Equal(t, expected, w.String())
136}
137
138func TestSETFLOAT(t *testing.T) {
139 w := &bytes.Buffer{}

Callers

nothing calls this directly

Calls 4

SETMethod · 0.80
EqualMethod · 0.80
NewFunction · 0.70
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…