mirror of
https://github.com/containers/podman.git
synced 2025-12-03 19:59:39 +08:00
* Make sure that all vendored dependencies are in sync with the code and the vendor.conf by running `make vendor` with a follow-up status check of the git tree. * Vendor ginkgo and gomega to include the test dependencies. Signed-off-by: Chris Evic <cevich@redhat.com> Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
15 lines
364 B
Go
15 lines
364 B
Go
package matchers
|
|
|
|
import (
|
|
"encoding/xml"
|
|
"strings"
|
|
)
|
|
|
|
type attributesSlice []xml.Attr
|
|
|
|
func (attrs attributesSlice) Len() int { return len(attrs) }
|
|
func (attrs attributesSlice) Less(i, j int) bool {
|
|
return strings.Compare(attrs[i].Name.Local, attrs[j].Name.Local) == -1
|
|
}
|
|
func (attrs attributesSlice) Swap(i, j int) { attrs[i], attrs[j] = attrs[j], attrs[i] }
|