TestSpec_Functions_DefaultObjectiveMapping validates that DefaultObjectiveMapping returns the built-in default mapping. The README documents its String() representation as "ObjectiveMapping{labels: 12, logic: max, priorities: 7}".
(t *testing.T)
| 254 | // documents its String() representation as |
| 255 | // "ObjectiveMapping{labels: 12, logic: max, priorities: 7}". |
| 256 | func TestSpec_Functions_DefaultObjectiveMapping(t *testing.T) { |
| 257 | om := github.DefaultObjectiveMapping() |
| 258 | require.NotNil(t, om, "DefaultObjectiveMapping should return a non-nil mapping") |
| 259 | |
| 260 | assert.Equal(t, github.MultiLabelLogicMax, om.MultiLabelLogic, |
| 261 | "the default mapping uses \"max\" logic per the README") |
| 262 | assert.Equal(t, "ObjectiveMapping{labels: 12, logic: max, priorities: 7}", om.String(), |
| 263 | "the documented default mapping summary should match") |
| 264 | } |
| 265 | |
| 266 | // TestSpec_Functions_LoadObjectiveMappingFromConfig validates that, absent any |
| 267 | // environment or config-file override, LoadObjectiveMappingFromConfig falls |
nothing calls this directly
no test coverage detected