fix: continued moving everything to orderedmaps plus cleaned up most the tests

This commit is contained in:
Tristan Cartledge
2023-12-01 17:37:07 +00:00
parent 0f3d0cb28f
commit a4ad09aab3
169 changed files with 3435 additions and 3764 deletions

View File

@@ -3,7 +3,9 @@
package utils
import "gopkg.in/yaml.v3"
import (
"gopkg.in/yaml.v3"
)
func CreateRefNode(ref string) *yaml.Node {
m := CreateEmptyMapNode()
@@ -23,6 +25,13 @@ func CreateEmptyMapNode() *yaml.Node {
return n
}
func CreateYamlNode(a any) *yaml.Node {
var n yaml.Node
_ = n.Encode(a)
return &n
}
func CreateEmptySequenceNode() *yaml.Node {
n := &yaml.Node{
Kind: yaml.SequenceNode,