MCPcopy
hub / github.com/netdata/netdata / TestConfig_FullName

Function TestConfig_FullName

src/go/plugin/framework/confgroup/config_test.go:51–66  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

49}
50
51func TestConfig_FullName(t *testing.T) {
52 tests := map[string]struct {
53 cfg Config
54 expected any
55 }{
56 "name == module": {cfg: Config{"name": "name", "module": "name"}, expected: "name"},
57 "name != module": {cfg: Config{"name": "name", "module": "module"}, expected: "module_name"},
58 "nil cfg": {expected: ""},
59 }
60
61 for name, test := range tests {
62 t.Run(name, func(t *testing.T) {
63 assert.Equal(t, test.expected, test.cfg.FullName())
64 })
65 }
66}
67
68func TestConfig_UpdateEvery(t *testing.T) {
69 tests := map[string]struct {

Callers

nothing calls this directly

Calls 3

EqualMethod · 0.80
RunMethod · 0.65
FullNameMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…