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

Function TestObjectiveMapping_String

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

Source from the content-addressed store, hash-verified

208}
209
210func TestObjectiveMapping_String(t *testing.T) {
211 mapping := DefaultObjectiveMapping()
212 str := mapping.String()
213 assert.Contains(t, str, "ObjectiveMapping")
214 assert.Contains(t, str, "max")
215
216 var nilMapping *ObjectiveMapping
217 assert.Equal(t, "nil ObjectiveMapping", nilMapping.String())
218}
219
220func TestLoadObjectiveMappingFromConfig_EnvVar(t *testing.T) {
221 // Save original env

Callers

nothing calls this directly

Calls 2

StringMethod · 0.95
DefaultObjectiveMappingFunction · 0.85

Tested by

no test coverage detected