Coverage tests in ees package and updated Go version in Ansible scripts

This commit is contained in:
nickolasdaniel
2021-03-12 17:01:55 +02:00
committed by Dan Christian Bogos
parent d9641e9cf7
commit 4be82cd76f
23 changed files with 517 additions and 143 deletions

View File

@@ -192,3 +192,13 @@ func (onm *OrderedNavigableMap) RemoveAll() {
onm.orderIdx = NewPathItemList()
onm.orderRef = make(map[string][]*PathItemElement)
}
// OrderedFieldsAsStrings returns the elements as strings in order they were inserted
func (onm *OrderedNavigableMap) OrderedFieldsAsStrings() (flds []string) {
flds = make([]string, 0, onm.Len())
for el := onm.GetFirstElement(); el != nil; el = el.Next() {
fld, _ := onm.Field(el.Value)
flds = append(flds, IfaceAsString(fld.Interface()))
}
return
}