(t *testing.T)
| 144 | } |
| 145 | |
| 146 | func TestDefaultObjectiveMapping(t *testing.T) { |
| 147 | mapping := DefaultObjectiveMapping() |
| 148 | require.NotNil(t, mapping) |
| 149 | assert.NotEmpty(t, mapping.LabelToValue) |
| 150 | assert.Equal(t, "max", mapping.MultiLabelLogic) |
| 151 | assert.NotEmpty(t, mapping.PriorityLabels) |
| 152 | |
| 153 | // Verify some expected labels |
| 154 | assert.Equal(t, 100, mapping.LabelToValue["critical"]) |
| 155 | assert.Equal(t, 100, mapping.LabelToValue["p0"]) |
| 156 | assert.Equal(t, 50, mapping.LabelToValue["high-priority"]) |
| 157 | assert.Equal(t, 50, mapping.LabelToValue["copilot-opt"]) |
| 158 | } |
| 159 | |
| 160 | func TestObjectiveMapping_MarshalJSON(t *testing.T) { |
| 161 | mapping := &ObjectiveMapping{ |
nothing calls this directly
no test coverage detected