MCPcopy
hub / github.com/netdata/netdata / TestVARIABLE

Function TestVARIABLE

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

Source from the content-addressed store, hash-verified

158}
159
160func TestVARIABLE(t *testing.T) {
161 w := &bytes.Buffer{}
162 api := New(w)
163
164 api.VARIABLE("var1", 100)
165 api.VARIABLE("var2", 100.1)
166
167 expected := "VARIABLE CHART 'var1' = 100\nVARIABLE CHART 'var2' = 100.1\n"
168
169 require.Equal(t, expected, w.String())
170}
171
172func TestEND(t *testing.T) {
173 w := &bytes.Buffer{}

Callers

nothing calls this directly

Calls 4

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