MCPcopy
hub / github.com/netdata/netdata / TestCLABEL

Function TestCLABEL

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

Source from the content-addressed store, hash-verified

68}
69
70func TestCLABEL(t *testing.T) {
71 w := &bytes.Buffer{}
72 api := New(w)
73
74 api.CLABEL("key1", "value1", 1)
75
76 expected := "CLABEL 'key1' 'value1' '1'\n"
77
78 require.Equal(t, expected, w.String())
79}
80
81func TestCLABELCOMMIT(t *testing.T) {
82 w := &bytes.Buffer{}

Callers

nothing calls this directly

Calls 4

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