MCPcopy
hub / github.com/netdata/netdata / TestNew

Function TestNew

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

Source from the content-addressed store, hash-verified

10)
11
12func TestNew(t *testing.T) {
13 t.Run("valid writer", func(t *testing.T) {
14 require.NotNil(t, New(&bytes.Buffer{}))
15 })
16
17 t.Run("nil writer", func(t *testing.T) {
18 require.Panics(t, func() { New(nil) })
19 })
20}
21
22func TestChart(t *testing.T) {
23 w := &bytes.Buffer{}

Callers

nothing calls this directly

Calls 2

NewFunction · 0.70
RunMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…