Paths test coverage is completed.

Found some good gaps a holes in existing overage.
This commit is contained in:
Dave Shanley
2022-08-15 17:52:32 -04:00
parent 7ce5f5438f
commit 10bf40ad97
16 changed files with 861 additions and 85 deletions

View File

@@ -1722,7 +1722,7 @@ func (index *SpecIndex) performExternalLookup(uri []string, componentId string,
func (index *SpecIndex) FindComponentInRoot(componentId string) *Reference {
name, friendlySearch := utils.ConvertComponentIdIntoFriendlyPathSearch(componentId)
friendlySearch = strings.ReplaceAll(friendlySearch, "~1", "/")
path, _ := yamlpath.NewPath(friendlySearch)
res, _ := path.Find(index.root)