MCPcopy
hub / github.com/netdata/netdata / TestSETEMPTY

Function TestSETEMPTY

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

Source from the content-addressed store, hash-verified

147}
148
149func TestSETEMPTY(t *testing.T) {
150 w := &bytes.Buffer{}
151 api := New(w)
152
153 api.SETEMPTY("cpu_user")
154
155 expected := "SET 'cpu_user' = \n"
156
157 require.Equal(t, expected, w.String())
158}
159
160func TestVARIABLE(t *testing.T) {
161 w := &bytes.Buffer{}

Callers

nothing calls this directly

Calls 4

SETEMPTYMethod · 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…