Variety of refactors and optimizations.

This commit is contained in:
Jay
2026-03-05 00:28:40 -05:00
parent 894eab5405
commit 269e88fe49
15 changed files with 268 additions and 368 deletions

View File

@@ -172,7 +172,7 @@ func nodesEqual(expected, got *Node) error {
}
// Compare label values
for _, label := range expected.Labels.ToArray() {
for _, label := range expected.Labels.AsSortedArray() {
if !got.Labels.Contains(label) {
return fmt.Errorf("missing label %q", label)
}