Datamodel now at 100% coverage

working with k8s, stripe, petstore and locals. Speed is as good as I can make it at this point, not without further performance tunupes for memory consumption. less copying everywhere.
This commit is contained in:
Dave Shanley
2022-08-30 09:07:03 -04:00
parent 983811e29f
commit 4771f8d7e9
7 changed files with 341 additions and 24 deletions

View File

@@ -210,27 +210,6 @@ func TestSetField_NodeRefAny_Error(t *testing.T) {
}
func TestSetField_MapStringAny_Error(t *testing.T) {
type internal struct {
Thing map[string]NodeReference[any]
}
yml := `thing:
thang:
tang:
bang:`
ins := new(internal)
var rootNode yaml.Node
mErr := yaml.Unmarshal([]byte(yml), &rootNode)
assert.NoError(t, mErr)
try := BuildModel(&rootNode, ins)
assert.Error(t, try)
}
func TestSetField_MapHelperWrapped(t *testing.T) {
type internal struct {