MCPcopy
hub / github.com/grafana/tempo / entryForChangelogs

Function entryForChangelogs

tools/chloggen/cmd/cmd_test.go:107–120  ·  view source on GitHub ↗
(changeType string, issue int, keys ...string)

Source from the content-addressed store, hash-verified

105}
106
107func entryForChangelogs(changeType string, issue int, keys ...string) *chlog.Entry {
108 keyStr := "default"
109 if len(keys) > 0 {
110 keyStr = strings.Join(keys, ",")
111 }
112 return &chlog.Entry{
113 ChangeLogs: keys,
114 ChangeType: changeType,
115 Component: "receiver/foo",
116 Note: fmt.Sprintf("Some change relevant to [%s]", keyStr),
117 Issues: []int{issue},
118 User: "octocat",
119 }
120}
121
122func setupTestDir(t *testing.T, entries []*chlog.Entry) {
123 require.NotNil(t, globalCfg, "test should instantiate globalCfg before calling setupTestDir")

Callers 1

TestUpdateFunction · 0.85

Calls 1

JoinMethod · 0.65

Tested by

no test coverage detected