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