String returns a human-readable summary of the mapping.
()
| 218 | |
| 219 | // String returns a human-readable summary of the mapping. |
| 220 | func (om *ObjectiveMapping) String() string { |
| 221 | if om == nil { |
| 222 | return "nil ObjectiveMapping" |
| 223 | } |
| 224 | return fmt.Sprintf("ObjectiveMapping{labels: %d, logic: %s, priorities: %d}", |
| 225 | len(om.LabelToValue), om.MultiLabelLogic, len(om.PriorityLabels)) |
| 226 | } |
| 227 | |
| 228 | // ValidateLabelExists checks if a given label has a defined objective value. |
| 229 | func (om *ObjectiveMapping) ValidateLabelExists(label string) bool { |
no outgoing calls