MCPcopy Create free account
hub / github.com/deepflowio/deepflow / newTestLabel

Function newTestLabel

server/controller/prometheus/cache/cache_test.go:137–141  ·  view source on GitHub ↗

newTestLabel 创建一个不依赖 DB 的 label 实例,同时创建配套的 labelName/labelValue

()

Source from the content-addressed store, hash-verified

135
136// newTestLabel 创建一个不依赖 DB 的 label 实例,同时创建配套的 labelName/labelValue
137func newTestLabel() *label {
138 ln := newTestLabelName()
139 lv := newTestLabelValue()
140 return newLabel(nil, ln, lv)
141}
142
143// newTestLabelWithRefs 返回 label 及其内部引用的 labelName/labelValue
144func newTestLabelWithRefs() (*label, *labelName, *labelValue) {

Calls 3

newTestLabelNameFunction · 0.85
newTestLabelValueFunction · 0.85
newLabelFunction · 0.70

Tested by

no test coverage detected