Extraction functions now at 100% coverage.

Model builder is up next.
This commit is contained in:
Dave Shanley
2022-08-29 16:19:37 -04:00
parent 637e6e9988
commit 916b6d410d
2 changed files with 411 additions and 3 deletions

View File

@@ -449,11 +449,11 @@ func ExtractMapFlat[PT Buildable[N], N any](label string, root *yaml.Node, idx *
valueMap[res.k] = res.v
}
}
if circError != nil && !idx.AllowCircularReferenceResolving() {
return valueMap, labelNode, valueNode, circError
}
return valueMap, labelNode, valueNode, nil
}
if circError != nil && !idx.AllowCircularReferenceResolving() {
return nil, labelNode, valueNode, circError
}
return nil, labelNode, valueNode, nil
}