Working through what changed rabbit hole

Parameter dependencies mean we're back in the ball of yarn stage. Coverage is going to drop for a bit, until all the new hashing and interfaces are in place.
This commit is contained in:
Dave Shanley
2022-10-17 06:41:29 -04:00
parent fa12f244b8
commit 9cd7e4f155
28 changed files with 1430 additions and 150 deletions

View File

@@ -43,8 +43,12 @@ func (x *XML) Hash() [32]byte {
x.Name.Value,
x.Namespace.Value,
x.Prefix.Value,
fmt.Sprintf("%v", x.Attribute.Value),
fmt.Sprintf("%v", x.Wrapped.Value),
fmt.Sprint(x.Attribute.Value),
fmt.Sprint(x.Wrapped.Value),
}
// add extensions to hash
for k := range x.Extensions {
d = append(d, fmt.Sprintf("%v-%x", k.Value, x.Extensions[k].Value))
}
return sha256.Sum256([]byte(strings.Join(d, "|")))
}