fix: add test coverage to document and paths

This commit is contained in:
marclave
2023-05-24 09:51:03 -07:00
committed by Dave Shanley
parent 2777dcc4ad
commit 93f591d4a4
2 changed files with 19 additions and 1 deletions

View File

@@ -478,6 +478,24 @@ func TestDocument_MarshalYAML(t *testing.T) {
}
func TestDocument_MarshalYAMLInline(t *testing.T) {
// create a new document
initTest()
h := NewDocument(lowDoc)
// render the document to YAML inline
r, _ := h.RenderInline()
info, _ := datamodel.ExtractSpecInfo(r)
lDoc, e := lowv3.CreateDocumentFromConfig(info, datamodel.NewOpenDocumentConfiguration())
assert.Nil(t, e)
highDoc := NewDocument(lDoc)
testBurgerShop(t, highDoc, false)
}
func TestDocument_MarshalYAML_TestRefs(t *testing.T) {
// create a new document