MCPcopy
hub / github.com/netdata/netdata / TestSETFLOAT

Function TestSETFLOAT

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

Source from the content-addressed store, hash-verified

136}
137
138func TestSETFLOAT(t *testing.T) {
139 w := &bytes.Buffer{}
140 api := New(w)
141
142 api.SETFLOAT("cpu_user", 42.42)
143
144 expected := "SET 'cpu_user' = 42.42\n"
145
146 require.Equal(t, expected, w.String())
147}
148
149func TestSETEMPTY(t *testing.T) {
150 w := &bytes.Buffer{}

Callers

nothing calls this directly

Calls 4

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