MCPcopy Create free account
hub / github.com/github/gh-aw / TestDefaultObjectiveMapping

Function TestDefaultObjectiveMapping

pkg/github/label_objective_mapping_test.go:146–158  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

144}
145
146func 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
160func TestObjectiveMapping_MarshalJSON(t *testing.T) {
161 mapping := &ObjectiveMapping{

Callers

nothing calls this directly

Calls 1

DefaultObjectiveMappingFunction · 0.85

Tested by

no test coverage detected