MCPcopy
hub / github.com/netdata/netdata / TestHOST

Function TestHOST

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

Source from the content-addressed store, hash-verified

229}
230
231func TestHOST(t *testing.T) {
232 w := &bytes.Buffer{}
233 api := New(w)
234
235 api.HOST("test-guid")
236
237 expected := "HOST 'test-guid'\n\n"
238
239 require.Equal(t, expected, w.String())
240}
241
242func TestFUNCRESULT(t *testing.T) {
243 w := &bytes.Buffer{}

Callers

nothing calls this directly

Calls 4

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